Bancoagrícola Logo
RefundsTokenization

Country:

POST

/v1/payments

Create Payment

Process a new payment transaction

Basic card payment processing

amount

number
required

Payment amount in cents

example

currency

string
required

Three-letter currency code

example

card_number

string

Credit card number

example

cvv

string

Card verification value

example

expiry_month

string

Card expiry month (MM)

example

expiry_year

string

Card expiry year (YYYY)

example

customer_id

string

Customer identifier

example

description

string

Payment description

example

Request Example

{
  "amount": 1500,
  "currency": "USD",
  "card_number": "4111111111111111",
  "cvv": "123",
  "expiry_month": "12",
  "expiry_year": "2025",
  "customer_id": "cust_123456",
  "description": "Order #12345"
}

Response Examples

200

Payment created successfully

400

Invalid request parameters

402

Payment failed

500

Internal server error

Language

Login required to test API

Code Examples

cURL

curl -X POST "https://api.akua.la/v1/payments" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "amount": 1500,
  "currency": "USD",
  "card_number": "4111111111111111",
  "cvv": "123",
  "expiry_month": "12",
  "expiry_year": "2025",
  "customer_id": "cust_123456",
  "description": "Order #12345"
}''