Skip to main content
POST
/
payments
/
complete
Confirm Payment
curl --request POST \
  --url https://api.usepooler.com/payments/complete \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "quote_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "reference": "<string>"
}
'
{
  "success": true,
  "message": "<string>",
  "stan": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "data": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "reference": "<string>",
    "status": "pending",
    "amount": "<string>",
    "currency": "<string>",
    "description": "<string>",
    "type": "<string>",
    "sub_type": "<string>",
    "category": "<string>",
    "transaction_date": "2023-11-07T05:31:56Z",
    "tags": "<string>",
    "is_reversed": true,
    "is_completed": true,
    "channel": "<string>",
    "notes": "<string>",
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z"
  }
}
Complete a payment transaction that was previously initiated. This endpoint executes the payment after you’ve reviewed the quote from the initiate endpoint.

Overview

After initiating a payment and receiving a quote, use this endpoint to confirm and execute the payment. The payment will be processed immediately upon confirmation.
Ensure you have sufficient balance before confirming a payment. Failed payments due to insufficient balance cannot be automatically retried.

Request Body

quote_id
string
required
Payment quote ID from the initiate payment response
reference
string
required
Payment reference from the initiate payment response

Response

success
boolean
Indicates whether the payment was completed successfully
data
object
Payment transaction details including status, amount, currency, and recipient information

Error Responses

If the payment fails (e.g., insufficient balance), the response will include:
success
boolean
Will be false for failed payments
data
string
Error message describing the failure reason

Authorizations

Authorization
string
header
required

Bearer token authentication. Include your API key in the Authorization header as: Bearer {your_api_key}

Body

application/json
quote_id
string<uuid>
required

Payment quote ID from initiate response

reference
string
required

Payment reference from initiate response

Response

Payment completed successfully

success
boolean
message
string
stan
string<uuid>
data
object