OrdersCreate Order

Create Order

curl -X POST "https://sandbox-api.aparatech.io/v1/public/orders" \
  -H "Content-Type: application/json" \
  -H "MID: example_string" \
  -d '{
  "userId": "OCUX-17784812248037343",
  "orderType": "payin",
  "purposeCode": "company_expenses",
  "successRedirectUrl": "https://yourapp.com/success",
  "failureRedirectUrl": "https://yourapp.com/failure",
  "headlessMode": true,
  "source": {
    "currency": "VND",
    "amount": "170010",
    "paymentType": "bank_transfer",
    "paymentCode": "techcom_bank"
  }
}'
{
  "status": "success",
  "data": {
    "flow": "FIAT_PAYIN",
    "orderId": "OR-2605141118506969532",
    "amount": 170010,
    "payUrl": "https://sandbox-checkout.aparatech.io/MwKOTDPp8"
  }
}
POST
/v1/public/orders
POST
Base URLstring

Target server for requests. Edit to use your own host.

Content-Typestring
Required

The media type of the request body

Options: application/json
Request Preview
Response

Response will appear here after sending the request

Headers

Responses

statusstring
dataobject