Order Payment
Endpoint
POST /api/v6.1/purchase_order_payment/direct
Headers
{
"Content-Type": "application/json",
"X-API-KEY": "{your_api_key}"
}
Request Body
| Field | Data Type | Description |
|------------------|-------------|-------|
| order_code
| String | Order code to pay |
| method_name
| String | Payment method |
| amount
| Number | Payment amount |
| description
| String | Transaction description |
| pay_date
| String (YYYY-MM-DD) | Payment date |\
{
"order_code": "DH_TET_2025_2",
"method_name": "Foreign Exchange Forex",
"amount": 50000,
"description": "Temporary payment",
"pay_date": "2025-02-03"
}
Response (Success)
| Field | Data Type | Description |
|-----------|-------------|-------|
| message
| String | Result message |
| data
| Object | Response data |
| via
| String | Payment method |
| id
| Number | Payment transaction ID |
| order_id
| Number | Related order ID |\
{
"message": "Successfully added",
"data": {
"via": "direct",
"id": 37,
"order_id": 197
}
}