search

No results found

API Reference chevron_right Sandbox Order
science TESTING

Sandbox Order

Endpoint untuk testing order tanpa memotong saldo. Gunakan endpoint ini untuk menguji integrasi API sebelum go-live.

warning

Catatan: Transaksi sandbox tidak akan memotong saldo dan tidak akan mengirim produk. Gunakan hanya untuk testing.

POST /v1/order/sandbox

Request Body

Parameter Type Description
ref_id Required string ID referensi unik.
item_id Required integer ID item yang akan dibeli.
quantity Required integer Jumlah item.

Example Request

curl --request POST \
                  --url https://sekalipay.com/api/v1/order/sandbox \
                  --header 'X-APIKEY: YOUR_API_KEY' \
                  --header 'Content-Type: application/json' \
                  --data '{
                    "ref_id": "TEST-001",
                    "item_id": 123,
                    "quantity": 1
                  }'

Response Sample

200 OK
{
                  "message": "OK",
                  "data": {
                    "id": 99999,
                    "ref_id": "TEST-001",
                    "status": "sandbox"
                  }
                }
chat_bubble Feedback