Skip to content

charge_status

POST

Callout charge_status: asks your endpoint for the state of a pending charge.

webhook-id
required
string

Unique id of this delivery. Deduplicate on it.

webhook-timestamp
required
string

Unix time in seconds when the delivery was signed.

webhook-signature
required
string

Standard Webhooks signature, v1,<base64 HMAC-SHA256> of id.timestamp.body.

webhook-type
required
string

Always charge_status.

Media typeapplication/json
ChargeStatusRequest

Callout charge_status: asks your endpoint for the state of a pending charge.

object
purchase_id
required
Purchase Id

Id of the purchase to check.

string format: uuid

Example generated

{
"purchase_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"
}

The answer we use

Media typeapplication/json
ChargeResponse

Your answer to the charge and charge_status callouts.

object
external_ref
Any of:
string
status
required
Status

insufficient sends the buyer to top up; pending is checked again later.

string
Allowed values: paid insufficient failed pending
topup_url
Any of:
string

Example

{
"external_ref": null,
"status": "paid",
"topup_url": null
}