Commit or Cancel Payout
After payout creation, you need to either commit or cancel the payout.
Commit Payout
Section titled “Commit Payout”Make a POST /payouts/{payoutId}/commit
request:
curl --request POST \ --url 'https://sandbox.unipaas.com/platform/payouts/{payoutId}/commit' \ --header 'Accept: application/json' \ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer <PLATFORM_SECRET_KEY>'in the response, you’ll get the commited Payout object.
Commit Vendor Payout
Section titled “Commit Vendor Payout”Make a POST /vendors/{vendorId}/payouts/{payoutId}/commit request:
curl --request POST \ --url 'https://sandbox.unipaas.com/platform/vendors/{vendorId}/payouts/{payoutId}/commit' \ --header 'Accept: application/json' \ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer <PLATFORM_SECRET_KEY>'in the response, you’ll get the commited Payout object.
Cancel Payout
Section titled “Cancel Payout”Make a POST /payouts/{payoutId}/cancel request:
curl --request POST \ --url 'https://sandbox.unipaas.com/platform/payouts/{payoutId}/cancel' \ --header 'Accept: application/json' \ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer <PLATFORM_SECRET_KEY>'in the response, you’ll get the cancelled Payout object.
Cancel Vendor Payout
Section titled “Cancel Vendor Payout”Make a POST /vendors/{vendorId}/payouts/{payoutId}/cancel request:
curl --request POST \ --url 'https://sandbox.unipaas.com/platform/vendors/{vendorId}/payouts/{payoutId}/cancel' \ --header 'Accept: application/json' \ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer <PLATFORM_SECRET_KEY>'in the response, you’ll get the cancelled Payout object.