Retrieve a charge
Retrieves the details of an existing charge. You need only supply the unique charge identifier that was returned upon charge creation.
Arguments
Parameter
Description
curl https://{domain given}/v2/charges/AWT_fCCMh9GTrU2CKeaeXw== \
-u sk_test_BQokikJOvBiI2HlWgH4olfQ2:
The above command returns JSON structured like this:
{
"id": "AWT_fCCMh9GTrU2CKeaeXw==",
"amount": 1000,
"currency": "USD",
"payer": {
"id": "123",
"firstname": "John",
"lastname": "Doe",
"email": "[email protected]",
"ip": "127.0.0.1",
"address_city": "Mannheim Neckarstadt",
"address_country": "DE",
"address_line1": "Scharnweberstrasse 24",
"address_line2": "",
"address_zip": "68167",
"address_state": "BW",
"phone": "+49062111272935"
},
"source": "AWUkvUDKKnJahjituNpzTA",
"status": "succeeded",
"livemode": false
}Last updated