Skip to main content

Payout request for buyer and seller

Notes
  • There is additional fee Rp 2.500 in this page, but at the time we test, there is no additional cuts to recipient nor from xendit.
Endpoint
Endpoint Source Method
Authentication
/payout/request
USAPI
POST Yes
Authentication
Type
Token source
Server
Bearer <USAPI>/auth

USAPI

User State API

Body request
{
  "username": <string>,
  "amount": <integer>,
  "platform" : <string>
}
Properties
Properties of Data type Required notes
username
string yes Username affiliated for payout from USAPI
amount
integer yes minimum amount is 50000
platform
string yes Platform lists:
  • ONDELIVERY
  • ONMARKET
Request example

Body request example

{
  "properties": "value"
}

Axios code example

insert code here
Result example

Body request example

insert code here
Error example

400 Bad Request

User balance is less than requested amount

{
    "message": "Insufficient Fund"
}

Requested amount is less than minimum amount

{
    "message": "must be >= 10000"
}

Parameter(s) required

{
    "message": "Must have required property <parameter>"
}

500 Internal Server Error

{
    "message": "Internal Error"
}