curl --request POST \
--url https://sandbox-platform.jupico.com/v1/query/transactions/receipt \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"transactionId": "b3f1c2d4-5e6a-4b7c-8d9e-0f1a2b3c4d5e",
"subMerchantId": "jpt-sim-md-1"
}
'import requests
url = "https://sandbox-platform.jupico.com/v1/query/transactions/receipt"
payload = {
"transactionId": "b3f1c2d4-5e6a-4b7c-8d9e-0f1a2b3c4d5e",
"subMerchantId": "jpt-sim-md-1"
}
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({
transactionId: 'b3f1c2d4-5e6a-4b7c-8d9e-0f1a2b3c4d5e',
subMerchantId: 'jpt-sim-md-1'
})
};
fetch('https://sandbox-platform.jupico.com/v1/query/transactions/receipt', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const url = 'https://sandbox-platform.jupico.com/v1/query/transactions/receipt';
const options = {
method: 'POST',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({
transactionId: 'b3f1c2d4-5e6a-4b7c-8d9e-0f1a2b3c4d5e',
subMerchantId: 'jpt-sim-md-1'
})
};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));{
"success": true,
"status": "<string>",
"code": "<string>",
"data": {
"transactionId": "<string>",
"referenceId": "<string>",
"invoiceNumber": "<string>",
"approvalNumber": "<string>",
"status": "<string>",
"operation": "<string>",
"date": "2023-11-07T05:31:56Z",
"amount": 123,
"currency": "USD",
"taxAmount": 123,
"items": [
{
"description": "<string>",
"quantity": 123,
"amount": 123,
"taxRate": 123
}
],
"merchant": {
"name": "<string>",
"address": "<string>",
"phone": "<string>",
"website": "<string>"
},
"customer": {
"name": "<string>",
"email": "<string>",
"phone": "<string>",
"address": "<string>"
},
"paymentMethod": {
"type": "<string>",
"brand": "<string>",
"last4": "<string>",
"cardHolderName": "<string>",
"accountType": "<string>"
},
"description": "<string>"
},
"message": "<string>",
"error": {}
}Get a transaction receipt
Returns the receipt data for a single transaction, ready to render or send to the cardholder. It combines the transaction, the sub-merchant’s business details, and the payment method into one flat payload, so you do not have to assemble a receipt from several queries. Unlike the other Query endpoints this is a single-record lookup: it takes one transactionId and one subMerchantId, and does not accept sorting, paging, or filtering.
curl --request POST \
--url https://sandbox-platform.jupico.com/v1/query/transactions/receipt \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"transactionId": "b3f1c2d4-5e6a-4b7c-8d9e-0f1a2b3c4d5e",
"subMerchantId": "jpt-sim-md-1"
}
'import requests
url = "https://sandbox-platform.jupico.com/v1/query/transactions/receipt"
payload = {
"transactionId": "b3f1c2d4-5e6a-4b7c-8d9e-0f1a2b3c4d5e",
"subMerchantId": "jpt-sim-md-1"
}
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({
transactionId: 'b3f1c2d4-5e6a-4b7c-8d9e-0f1a2b3c4d5e',
subMerchantId: 'jpt-sim-md-1'
})
};
fetch('https://sandbox-platform.jupico.com/v1/query/transactions/receipt', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const url = 'https://sandbox-platform.jupico.com/v1/query/transactions/receipt';
const options = {
method: 'POST',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({
transactionId: 'b3f1c2d4-5e6a-4b7c-8d9e-0f1a2b3c4d5e',
subMerchantId: 'jpt-sim-md-1'
})
};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));{
"success": true,
"status": "<string>",
"code": "<string>",
"data": {
"transactionId": "<string>",
"referenceId": "<string>",
"invoiceNumber": "<string>",
"approvalNumber": "<string>",
"status": "<string>",
"operation": "<string>",
"date": "2023-11-07T05:31:56Z",
"amount": 123,
"currency": "USD",
"taxAmount": 123,
"items": [
{
"description": "<string>",
"quantity": 123,
"amount": 123,
"taxRate": 123
}
],
"merchant": {
"name": "<string>",
"address": "<string>",
"phone": "<string>",
"website": "<string>"
},
"customer": {
"name": "<string>",
"email": "<string>",
"phone": "<string>",
"address": "<string>"
},
"paymentMethod": {
"type": "<string>",
"brand": "<string>",
"last4": "<string>",
"cardHolderName": "<string>",
"accountType": "<string>"
},
"description": "<string>"
},
"message": "<string>",
"error": {}
}Authorizations
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Body
Identify the transaction and the sub-merchant that owns it. responseFormat is optional and defaults to json.
Identifier of the transaction to build the receipt for.
"b3f1c2d4-5e6a-4b7c-8d9e-0f1a2b3c4d5e"
Sub-merchant that owns the transaction. Only one sub-merchant per request.
"jpt-sim-md-1"
Format of the returned receipt. Defaults to json, which is currently the only supported value.
json Response
Receipt data for the transaction.
Whether the request was processed successfully.
Result status of the request, such as succeeded.
Machine-readable result code. See the Error Codes reference.
The receipt payload. A field is omitted when the transaction does not carry a value for it.
Hide child attributes
Hide child attributes
Identifier of the transaction.
Your reference for the transaction, if one was sent.
Invoice number recorded on the transaction.
Approval number returned by the processor.
Status of the transaction, such as succeeded.
Operation the receipt covers, such as sale, refund, or void.
Date and time the transaction was processed.
Amount to show on the receipt. For an approved transaction this is the remaining balance when the transaction tracks one (for example, a sale that has been partially refunded), otherwise the original amount. A declined transaction always shows the original amount.
Currency of the transaction. Defaults to USD when the transaction does not record one.
"USD"
Tax amount recorded on the transaction.
Business details of the sub-merchant that took the payment.
Hide child attributes
Hide child attributes
Customer details taken from the transaction's billing information.
Hide child attributes
Hide child attributes
Billing name, falling back to the cardholder or account holder name when no billing name was sent.
Billing email address.
Billing phone number.
Billing address as a single line: address, city, state, ZIP code, and country.
How the transaction was paid. Brand and cardholder name are present for cards; account type is present for eCheck.
Hide child attributes
Hide child attributes
Payment method used, such as creditCard or eCheck.
Card brand. Cards only.
Last 4 digits of the card number or of the bank account number.
Name on the card. Cards only.
Bank account type, such as checking. eCheck only.
Description recorded on the transaction.
Human-readable result message.
Error detail. Absent on a successful request.
Was this page helpful?

