POST
Initiate Cashback Withdrawal

Authorizations

app-id
string
header
required

A unique identifier assigned to each application.

secret-key
string
header
required

A secure token associated with the app-id.

Body

application/json
user_id
string
required

The unique identifier of the customer withdrawing cashback.

Example:

"8GAVZZKTI3"

client_transaction_id
string
required

A unique identifier for the transaction on the client's side to prevent duplicates.

Example:

"withdraw_r15e23"

cashback_transaction_detail
object
required

Contains details for processing the cashback payout.

webhook_notification
object
required

Webhook notification details for callback after processing the payout.

Callbacks

POST
{$request.body#/webhook_notification/endpoint_url}cashbackWithdrawalCallback

Body

application/json
transaction_type
string

The type of transaction ("money_out").

withdrawal_id
string

The unique identifier for the withdrawal transaction.

client_transaction_id
string

The client's transaction identifier.

merchant_name
string

The merchant's name.

site_name
string

The site name.

customer_id
string

The customer's unique identifier.

amount
number<float>

The amount withdrawn.

withdrawal_method
string

The method used for withdrawal.

status
string

The status of the transaction ("settled" or "failed").

created_at
string<date-time>

The timestamp when the transaction was created.

updated_at
string<date-time>

The timestamp when the transaction was last updated.

payout_method_params
object

The parameters used for the payout method.

webhook_notification
object

Details for webhook notification after the transaction is processed.

Response

Callback received successfully.

Response

Withdrawal initiated successfully.

transaction_type
string

Specifies the type of transaction ("money_out" for withdrawal).

Example:

"money_out"

withdrawal_id
string

The unique identifier for this withdrawal transaction.

Example:

"HQ2GGUO7"

client_transaction_id
string

The client's unique transaction identifier.

Example:

"r15e23"

merchant_name
string

The name of the merchant associated with the withdrawal.

Example:

"Hello Clever"

site_name
string

The name of the site where the withdrawal is processed.

Example:

"Cashback"

customer_id
string

The unique identifier of the customer withdrawing cashback.

Example:

"8GAVZZKTI3"

amount
number<float>

The amount of cashback withdrawn, in major units.

Example:

10

withdrawal_method
string

The method used for the withdrawal (e.g., "au_bank_npp_aud").

Example:

"au_bank_npp_aud"

status
string

The current status of the transaction (e.g., "processing").

Example:

"processing"

created_at
string<date-time>

The timestamp when the transaction was created.

Example:

"2024-11-07T02:32:42.200Z"

updated_at
string<date-time>

The timestamp when the transaction was last updated.

Example:

"2024-11-07T02:32:42.231Z"

payout_method_params
object

The parameters used for the payout method.

webhook_notification
object

Details for webhook notification after the transaction is processed.