Charge
Lookup a charge
Retrieves the details of an existing charge. Supply the unique charge id, and Straddle will return the corresponding charge information.
get/v1/charges/{id}
Path parameters
idstring uuid required
Headers
Straddle-Account-Idstring uuid
For use by platforms to specify an account id and set scope of a request.
Request-Idstring
Optional client generated identifier to trace and debug a request.
Correlation-Idstring
Optional client generated identifier to trace and debug a series of requests.
Response
OK
Example response
{
"data": {
"description": "Monthly subscription fee",
"paykey_details": {
"label": "Bank of America ****1234"
},
"customer_details": {
"name": "Ron Swanson",
"email": "ron@swanson.com",
"phone": "+1234567890"
},
"amount": 10000,
"device": {
"ip_address": "192.168.1.1"
},
"status_details": {
"message": "Payment successfully created and awaiting validation."
},
"status_history": [
{
"message": "Payment successfully created and awaiting validation."
}
]
}
}