Create Transaction
You can create a transaction using this endpoint. We’ll process the request and sends you the QR data. This QR data enables you to create the QR image and display it to the customer.
Endpoint = POST /integrations/payment/outlets/{outlet_id}/v2/transactions
Sample Request
Sample Request of Create Transaction
curl -X POST https://api.sandbox.gobiz.co.id/integrations/payment/outlets/{outlet_id}/v2/transactions \
-H 'Content-Type: application/json' \
-H 'Idempotency-Key: string' \
-H 'Authorization: Bearer {access-token}' \
-d $'
{
"payment_type": "qris",
"transaction_details": {
"order_id": "order-1234",
"gross_amount": 3000,
"currency": "IDR"
},
"item_details": [
{
"id": "SKU-000123",
"price": 3000,
"quantity": 1,
"name": "Item sample no.1",
"brand": "sample brand",
"category": "others",
"merchant_name": null
}
],
"customer_details": {
"first_name": "John",
"last_name": "Doe",
"email": "[email protected]",
"phone": "+628111000123"
}
}
'
Sample Response (200)
Sample Response of Create Transaction
{
"success": true,
"data": {
"outlet": {
"id": "{gobiz_outlet_id}",
"pop_id": "{id_of_pop_machine_given_by_gobiz}"
},
"transaction": {
"id": "{transaction_id_in_uuid}",
"payment_type": "{payment_mode_qris}",
"status": "{transaction_status}",
"qris_string": "{qr_data_to_display_the_QR_image_on_customer_side}",
"order_id": "{order_id_of_the_transaction}",
"gross_amount": {transaction_amount_in_IDR},
"currency": "IDR",
"created_at": "{ISO_8601_timestamp}",
"settlement_at": null
},
"actions": [
{
"name": "generate-qr-code",
"method": "GET",
"url": "{URL_to_retrieve_qr_code}"
}
]
}
}