API
  1. Acquiring
API
  • Guides
    • Welcome
    • Interface
  • API Reference
    • Introduction
    • Endpoints
    • Data Types
    • Signing
    • 3-D Secure Verification
    • Subscription
    • Errors
    • Webhooks
    • Items Information
    • Changelog
    • Acquiring
      • Create a direct payment
        POST
      • Create a APM payment
        POST
      • Create a redirect (iFrame) payment
        POST
      • Query a transaction
        POST
      • Refund a transaction
        POST
      • Search a refund transaction
        POST
      • Review a transaction
        POST
      • Cancel a transaction
        POST
      • Cancel a subscription
        POST
      • Capture a transaction
        POST
      • Create a payout
        POST
      • Optimise payment methods
        POST
    • Issuing
      • Cardholder
        • Create cardholder
          POST
        • Delete cardholder
          POST
        • Query cardholder
          POST
      • Group
        • Create group
        • Query group details
        • Cancel group
        • Refund group
        • Update group status
        • Recharge group
      • Card
        • Create a card
        • Query card BIN
        • Recharge card
        • Withdraw from a card
        • Cancel a card
        • Update card status
        • Update card limit
        • Query card details
  • Appendix
    • Test Cards
    • Bank Code
    • Country Code
    • Currency Code
    • Payment Methods
  1. Acquiring

Capture a transaction

POST
/v1/capture
Capture can be done by batch – up to 50 orders in a single request.
Merchant can also manually capture a transaction in Merchant Portal.

Request

Header Params

Body Params application/json

Example
{
    "merchant_id": "1018001",
	"account_id": "1018001013",
	"encryption_data": "138527e176e62b1dcd5ce3393aa6fa04e5c8031a1bf89b7f2e516417abd2fb42",
    "capture_orders":[
        {
            "transaction_id": "1379870442859134976",
		    "order_no": "1731482700989",
            "currency": "USD",
            "amount": "958.38"
        }
    ]
}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://test-api.sufupayment.com/v1/capture' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-raw '{
    "merchant_id": "1018001",
	"account_id": "1018001013",
	"encryption_data": "138527e176e62b1dcd5ce3393aa6fa04e5c8031a1bf89b7f2e516417abd2fb42",
    "capture_orders":[
        {
            "transaction_id": "1379870442859134976",
		    "order_no": "1731482700989",
            "currency": "USD",
            "amount": "958.38"
        }
    ]
}'

Responses

🟢200Success
application/json
Body

Example
{
    "account_id": "1018001013",
    "return_message": "OK",
    "return_status": "1",
    "encryption_data": "138527e176e62b1dcd5ce3393aa6fa04e5c8031a1bf89b7f2e516417abd2fb42",
    "merchant_id": "1018001",
    "capture_orders": [
        {
            "amount": "958.38",
            "capture_status": "1",
            "currency": "USD",
            "error_message": "",
            "order_no": "1731482700989",
            "transaction_id": "1379870442859134976"
        }
    ]
}
Modified at 2024-11-15 07:35:50
Previous
Cancel a subscription
Next
Create a payout