Request a Transfer

Enables marketplaces using WHITELABEL Split Payments to request a transfer based on an existing payment. Request a transfer for a specified amount to one of the recipients participating in the split.

POST/payments/{payment_id}/transactions/{transaction_id}/split-marketplace/transfer-reversal

Header Parameters

X-Idempotency-Keystring

Unique identifier used in HTTP headers to ensure that a request is processed only once, even if it is retried due to network issues or timeouts.

Path Parameters

payment_idstringrequired

The unique identifier of the payment (MAX 64; MIN 36).

transaction_idstringrequired

The unique identifier of the transaction (MAX 64; MIN 36).

Body application/json

amountobjectrequired

The payment amount (multiple of 0.0001).

Show amount properties
currencystringrequired

Currency of the transaction. Visit the country reference for the full list of supported currencies.

valuenumberrequired

The value amount of the transaction.

descriptionstring

The unique identifier of the transaction (MAX 256; MIN 3).

Response

Created

idstring

The unique identifier of the transfer.

recipient_idstring

The unique identifier of the recipient.

amountobject
Show amount properties
currencystring
valuenumber
statusstring

The status of the transfer.

descriptionstring
merchant_referencestring
metadataany[]
providerobjectnull
transactionsobject[]
Show transactions properties
codestring
typestring
statusstring
provider_transfer_idstring
raw_responsestring
created_atstring<date-time>
updated_atstring<date-time>
created_atstring<date-time>
updated_atstring<date-time>
completed_atstring<date-time>

Bad Request

codestring
messagesstring[]
Request
curl -X POST "https://api-sandbox.whitelabel.com/v1/payments/<payment_id>/transactions/<transaction_id>/split-marketplace/transfer-reversal" \
  -H "Content-Type: application/json" \
  -H "X-Idempotency-Key: <X-Idempotency-Key>" \
  -H "public-api-key: <public-api-key>" \
  -H "private-secret-key: <private-secret-key>" \
  -d '{
  "amount": {
    "currency": "",
    "value": 0
  },
  "description": ""
}'
Response
{
  "id": "string",
  "recipient_id": "string",
  "amount": {
    "currency": "string",
    "value": 0
  },
  "status": "string",
  "description": "string",
  "merchant_reference": "string",
  "metadata": [
    null
  ],
  "provider": null,
  "transactions": [
    {
      "code": "string",
      "type": "string",
      "status": "string",
      "provider_transfer_id": "string",
      "raw_response": "string",
      "created_at": "1970-01-01T00:00:00.000Z",
      "updated_at": "1970-01-01T00:00:00.000Z"
    }
  ],
  "created_at": "1970-01-01T00:00:00.000Z",
  "updated_at": "1970-01-01T00:00:00.000Z",
  "completed_at": "1970-01-01T00:00:00.000Z"
}