Get a purchase by reference
Retrieves a single purchase including plan snapshot, usage, and billing details.
Path parameters
Purchase reference or ID
Response
Purchase retrieved successfully
Example response
{
"amount": 9900,
"currency": "GBP",
"customerEmail": "customer@example.com",
"customerRef": "cus_3C4D5E6F",
"exchangeRate": 1.3082,
"isRecurring": true,
"origin": "paid",
"originalAmount": 10000,
"planSnapshot": {
"currency": "USD",
"name": "Pro Monthly",
"price": 2999,
"reference": "pln_1A2B3C4D"
},
"productName": "API Gateway Manager",
"productRef": "prd_1A2B3C4D",
"reference": "pur_1A2B3C4D",
"status": "active",
"usage": {
"periodEnd": "2025-11-01T00:00:00Z",
"periodStart": "2025-10-01T00:00:00Z",
"used": 150
}
}Changes
Changed in 6 of the 27 revisions of this API.399
- ●
removed the optional property
/////from the response with the statusresponse-optional-property-removed
- ●
removed the optional property
/////from the response with the statusresponse-optional-property-removed
- ●
removed the optional property
/////from the response with the statusresponse-optional-property-removed
- ●
removed the optional property
/////from the response with the statusresponse-optional-property-removed
- ●
- ▲
removed the required property
/////from the response with the statusresponse-required-property-removed
- ●
removed the optional property
/////from the response with the statusresponse-optional-property-removed
- ●
removed the optional property
/////from the response with the statusresponse-optional-property-removed
- ●
removed the optional property
/////from the response with the statusresponse-optional-property-removed
- ●
removed the optional property
/////from the response with the statusresponse-optional-property-removed
- ○
added the optional property
/////to the response with the statusresponse-optional-property-added
- ○
added the optional property
/////to the response with the statusresponse-optional-property-added
- ○
added the optional property
/////to the response with the statusresponse-optional-property-added
This revision also has 3 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ▲
the response property
became optional for the statusresponse-property-became-optional
- ▲
the response property
became optional for the statusresponse-property-became-optional
- ○
added the optional property
to the response with the statusresponse-optional-property-added
- ○
added the optional property
to the response with the statusresponse-optional-property-added
This revision also has 3 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ○
the endpoint scheme security
SecretKeywas added to the APIapi-security-added
- ○
the endpoint scheme security
bearerwas removed from the APIapi-security-removed
This revision also has 3 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ○
added the optional property
/////to the response with the statusresponse-optional-property-added
This revision also has 192 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ●
removed the optional property
/////from the response with the statusresponse-optional-property-removed
- ○
added the optional property
/////to the response with the statusresponse-optional-property-added
- ●