GET https://api.100pay.co/api/v1/pay/charge/:charge_id
Retrieves previously-initiated Payment charge details, given transaction ID (charge_id
).charge_id
is included in the response body returned by charge initiation endpoint.Response Body
Body
PARAM
Key | Datatype | Required | Description |
HEADERS
Key | Datatype | Required | Description |
RESPONSES
status OK
{
"customer": {
"user_id": "111",
"name": "Elvis Gideon",
"phone": "80123456789",
"email": "user@site.com"
},
"billing": {
"currency": "USD",
"vat": 10,
"pricing_type": "fixed_or_partial_price",
"description": "MY TEST PAYMENT",
"amount": "10000",
"country": "US"
},
"status": {
"context": {
"status": "notpaid",
"value": 0
},
"value": "unpaid",
"total_paid": 0
},
"ref_id": "123456",
"payments": [],
"charge_source": "api",
"createdAt": "2024-08-17T00:54:06.971Z",
"_id": "66c279f6ca9387009120acba",
"metadata": {
"is_approved": "yes"
},
"call_back_url": "http://localhost:8000/verify-payment",
"userId": "669f72f0446b540075b00bdb",
"app_id": "669f72f0446b540075b00bde",
"chargeId": "66c279f6ca9387009120acba",
"__v": 0
} |