Batch update order's payments
Update order's payments endpoint supports multiple scenario as followed
Normal order
With normal, the endpoint supports approve or reject on payment slip (attachment) which should be included in your order information
Approve action
Approve payment amount for normal order, system will then send message back to customer with receipt
Example approve request parameter
Reject action
Reject payment amount for normal order, system will then send message back to customer requesting for new proof of payment
Example reject request parameter
Cash on delivery order
With COD, the endpoint supports both approval status of deposit amount and final paymentAmount once customer received packages
Approve action (COD - deposit amount)
Approve deposit amount for COD order, system will then send message back to customer letting them know to that package will be shipped soon
Example approve request parameter
Reject action (COD - deposit amount)
Reject payment amount for COD order, system will then send message back to customer requesting for new proof of payment
Example approve request parameter
Approve action (COD - payment)
Approve payment amount for COD order, system will then send message back to customer with final receipt
Example approve request parameter
Reject action (COD - payment)
Reject COD order, system will then send message back to customer letting them know that they rejected an order
Example approve request parameter
Endpoint
Resource method
POST
Parameters
Body parameters
Field name | Types | Required/Optional | Description |
---|---|---|---|
orderPayments | list of order payment | R | Order's payments |
Order payment information
Maximum number of batch order is 5
Field name | Types | Required/Optional | Description |
---|---|---|---|
orderNumber | string(12) | R | Order's number |
action | string(10) | R | Action for order payment either 'approve' or 'reject' |
amount | number(10) | R | payment amount required for 'approve' action |
paymentBankName | string(50) | O | Payment bank name |
paymentAt | string(50) | O | Payment at (ISO string) |
paymentMethodType | string(50) | O | Payment method type |
remark | string(50) | O | Order payment remark |
Support payment method type in our system
Example payment bank name
Deeple system usually generates payment bank name based on payment method type. But it's just string information which you can send anything. Here are few example from our system when it's generated automatically.
Example request parameter
Example expected response object