API
  • Introduction
  • Authentication
  • Error Handling
  • API ENDPOINTS
    • Payment
    • Invoices
      • Create Invoice
      • Re-send Invoice
      • Get Invoice - customerEmail
      • Get Invoice - invoiceNo
      • Get Invoice - orderNo
    • Payment Link
      • Create Link
      • Get Link
      • Update Link
      • Delete Link
    • Charge Token
      • Create Token
      • Get Token
      • Charge Token
      • Bulk Charge
      • Query Bulk Charge with BacthId
    • Subscriptions
      • Create Subscription
      • Charge Subscription
      • Get Customer Subscription
      • Update Customer Subscription
      • Get Merchant Subscription
    • Virtual Account
      • Create Virtual Account
      • Get Virtual Account
      • Delete Virtual Account
      • Get Payment
    • Pay with Transfer
    • Pay with USSD
    • Mobile Money Payments
    • Bank Account Payments
    • Card Payment
      • Initializing a Card Payment
      • Scenario 1 (Verve Card Type)
      • Scenario 2 (Master Card and Visa Card Type)
      • Scenario 3
Powered by GitBook
On this page
  1. API ENDPOINTS
  2. Charge Token

Charge Token

Transactions with authorizationCode can be charged with this endpoint.

/payments/charge-token

POST https://seerbitapi.com/api/v2/payments/charge-token

This endpoint allows you to charge a customer using the authorizationCode

Headers

Name
Type
Description

Authorization*

String

Request Body

Name
Type
Description

authorizationCode*

String

code to charge

paymentReference*

String

unique payment reference for charge

publicKey*

String

merchant publickey

amount*

String

amount you want to charge

curl --location 'https://seerbitapi.com/api/v2/payments/charge-token' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR_ENCRYPTED_KEY' \
--data '{
    "publicKey": "YOUR_PUBLIC_KEY",
    "amount": "110",
    "paymentReference": "charge_test_3451",
    "authorizationCode": "ye773838jje8837abe"
}'
{
    "status": "SUCCESS",
    "data": {
        "code": "00",
        "message": "APPROVED",
        "payments": {
            "paymentReference": "9288383999393",
            "linkingReference": "SEERBIT43376378378377720196"
        }
    }
}
PreviousGet TokenNextBulk Charge

Last updated 8 months ago

Bearer Token