Create a Receipt
Changed onCreate a Receipt resource to generate a receipt for a Transfer or Authorization. Receipts are supported for DEBIT and REVERSAL transfers, as well as CREDIT transfers from unreferenced refunds.
Include basic details such as total amount, buyer billing information, merchant name, and contact info.
Optionally, provide:
- an amount_breakdown of charges like subtotal, shipping, and surcharges
- an items list with product name, description, price, and quantity
- customization_details for structured data in the receipt header (subheader_attributes) and free-form text arrays above or below the receipt line items (summary_sections and footer_sections).
- additional_details as an array of key-value pairs to capture extra metadata, such as "Invoice Number" or "Service Date". additional_details is mutually exclusive with customization_details.subheader_attributes.
Request
- Base URLhttps://finix.sandbox-payments-api.com
- AuthHTTP basic
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Headers
Specify the API version of your request. For more details, see Versioning.
The data type being sent in the request body must be application/json.
Request body
Example request
{
"additional_details": [
{
"name": "Invoice Number",
"value": "4FEBVZP0-0002"
}
],
"customization_details": {
"footer_sections": [
{
"name": "Return Policy",
"value": "30-day return window with receipt. No refunds on clearance items. Exchanges allowed within 14 days."
}
],
"subheader_attributes": [
{
"name": "PO Number",
"value": "PO-12345"
}
],
"summary_sections": [
{
"name": "Payment Instructions",
"value": "Make a payment using our online portal."
}
]
},
"items": [
{
"item_details": {
"commodity_code": "175-62-20",
"cost_per_unit": 500,
"merchant_product_code": "1149611",
"unit_of_measure": "BX"
}
}
]
}Response
A single Receipt
Example response
{
"additional_details": [
{
"name": "Invoice Number",
"value": "4FEBVZP0-0002"
}
],
"amount": 5000,
"customization_details": {
"footer_sections": [
{
"name": "Return Policy",
"value": "30-day return window with receipt. No refunds on clearance items. Exchanges allowed within 14 days."
}
],
"subheader_attributes": [
{
"name": "PO Number",
"value": "PO-12345"
}
],
"summary_sections": [
{
"name": "Payment Instructions",
"value": "Make a payment using our online portal."
}
]
},
"items": [
{
"item_details": {
"commodity_code": "175-62-20",
"cost_per_unit": 500,
"merchant_product_code": "1149611",
"unit_of_measure": "BX"
}
}
]
}Changes
- breaking
the request's body type changed from
objectto no type - warning
removed the request property
- warning
removed the request property
- warning
removed the request property
- warning
removed the request property
- warning
removed the request property
- warning
removed the request property
- warning
removed the request property
- info
added to the request body
anyOflist
- breaking
- info
added the new optional request property
- info
the response property
///became required for the status - info
the response property
///became required for the status - info
the response property
///became required for the status - info
the response property
///became required for the status - info
the response property
///became required for the status - info
the response property
///became required for the status
- info