Skip to main content

Make airtime payment

This operation allow you a payment through a card** Nueve09 ®.

HTTP Request

POST /payment/airtime

Header Parameters

HeaderDescription
Authorization 
requerid
The Bearer token created in
 Get authorization Token
Content-Type 
requerid
application/json

Parámetros del cuerpo

ParameterTypePatternDescription
product_id
requerid
UUIDUUIDUnique product identifier
card_number**
requerid
string16 digits*The card_number of the card**
phone_number
requerid
string10 digitsPhone number of the beneficiary
email
requerid
stringemailEmail of the beneficiary
note

*If card_number is sended as 16 digits, it must be sended ciphered and Base 64 Encoded. See Data encryption & encoding

warning

**In the case of card_number, it must be a card associated with the Nueve09 ® ecosystem.

Example of JSON Request:

{
"product_id":"123e6734-e21r-42e4-a45j-556642446666",
"card_number": "t7wog3ytUChBC2xdLNe-sAQ-VXt7xgDi6U_iNSGQPyA7hPBYs1-_mLt",
"phone_number": "1122334455",
"email": "[email protected]",
"amount": 152.65343
}

Example of JSON Response:

{
"success": true,
"code": 0,
"message": "OK",
"data": {
"operation": {
"id": "123e6734-e21r-42e4-a45j-556642446666",
"authorization_code": "321",
"amount": 152.65343,
"payment_description": "pago aire",
"authorizer_date": "2024-01-01",
"authorizer_time": "12:00:00",
"creation_timestamp": "2024-01-01T12:00:00Z"
},
"airtime_topup": {
"id": "123e6734-e21r-42e4-a45j-556642446666",
"phone_number": "1122334455",
"sku": "54321",
"authorization_code": "123",
"amount": 152.65343,
"commission": 0.5,
"notification_email": "[email protected]",
"creation_timestamp": "2024-01-01T12:00:00Z",
"service": {
"name": "SUPER AIRE PREMIUM"
},
"product": {
"name": "SUPER AIRE PREMIUM",
"description": ""
},
"status": {
"code": "484",
"description": ""
}
},
"card": {
"id": "12123214-2e34-4fff-844f-321654987123",
"masked_card_number": "************1234",
"last_four": "1234",
"type": "PHISYCAL",
"status": "ACTIVE"
},
"account": {
"id": "22222222-daa7-1234-aaaa-123123123ecd",
"reference": "555555555"
}
}
}