Confirm a WhatsApp payout with the owner PIN
POST
/v1/public/whatsapp/payout-intents/{token}/confirm
const url = 'http://localhost:4000/v1/public/whatsapp/payout-intents/example/confirm';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"pin":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://localhost:4000/v1/public/whatsapp/payout-intents/example/confirm \ --header 'Content-Type: application/json' \ --data '{ "pin": "example" }'Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters”token
required
Five-minute single-use PIN link token; keep it out of logs and analytics
string
Five-minute single-use PIN link token; keep it out of logs and analytics
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
pin
required
string
Examplegenerated
{ "pin": "example"}Responses
Section titled “ Responses ”Admitted or replayed payout
Media typeapplication/json
object
id
required
string
object
required
string
agent_wallet_id
required
string | null
livemode
required
boolean
amount
required
integer
fee
required
integer
currency
required
string
provider
required
string
status
required
string
recipient
required
object
phone
required
string
name
required
string | null
client_reference
required
string | null
failure_reason
required
string | null
created_at
required
string
updated_at
required
string
Example
{ "object": "payout", "provider": "wave", "status": "pending"}Validation error
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": "example" }}Incorrect PIN
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": "example" }}Payout disabled
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": "example" }}Unknown or expired link
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": "example" }}Invalid state
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": "example" }}Daily cap exceeded
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": "example" }}Reservation unavailable; retry this link
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": "example" }}