Skip to main content
POST
/
v3
/
developer
/
oauth-billing
/
withdrawals
Withdraw developer OAuth billing earnings
curl --request POST \
  --url https://api.scalev.com/v3/developer/oauth-billing/withdrawals \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "amount": 2,
  "settlement_rail": "xendit"
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "timestamp": "2023-11-07T05:31:56Z",
  "settlement_rail": "xendit",
  "status": "<string>",
  "amount": 123,
  "currency": "<string>",
  "balance_before": 123,
  "balance_after": 123,
  "description": "<string>",
  "xendit_transfer_id": "<string>",
  "business_id": 123,
  "metadata": {}
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
amount
integer
required
Required range: x >= 1
settlement_rail
enum<string>
default:xendit
Available options:
xendit

Response

OAuth billing settlement

id
string<uuid>
timestamp
string<date-time>
settlement_rail
enum<string>
Available options:
xendit
status
string
amount
integer
currency
string
balance_before
integer
balance_after
integer
description
string
xendit_transfer_id
string | null
business_id
integer
metadata
object