# Managing Receipts

Learn how to provide receipts for In-Person or Online payments.

## How to manage receipts

If you want to manage and print your own receipts using your own receipt printer, you can use the `card_present_details` object in the response body of the `Authorization` or `Transfer` resource. Here's an example of the `card_present_details` object and the data that should be printed on the receipt:

```json
{
  "id": "AUarp7Pz21Low4u2Urw5Ub4W",
  "amount": 150,
  "other fields": null,
  "card_present_details": {
    "emv_data": {
      "application_identifier": "A0000001523010",
      "application_label": "DISCOVER",
      "application_preferred_name": null,
      "application_transaction_counter": "0005",
      "cryptogram": "ARCQ F666F8891F870D33",
      "issuer_code_table_index": null,
      "pin_verified": false,
      "tags": null
    },
    "masked_account_number": "************0059",
    "name": "Test Card 05",
    "brand": "DISCOVER",
    "entry_mode": "CHIP_ENTRY",
    "payment_type": "CREDIT",
    "approval_code": "004839"
  },
  "merchant": "MU4LYrniAvqVKUBqcATb7Y7p",
  "merchant_identity": "IDsbTBawhnLBAVeinRb84vFR",
  "state": "SUCCEEDED",
  "trace_id": "FNXsK76MxJWPkbGqpKymgkzK"
}
```

The following example outlines the receipt data elements (not the visual layout) and maps each element to its corresponding field in the Finix API response.

**Sample Receipt:**

**Receipt Data:**

| No. | Name | ReceiptProtocol Field | Finix API Location |
|  --- | --- | --- | --- |
| 1 | Merchant Name & Address | `merchantName`, `merchantAddress` | Generate independently or pull from the merchant identity. |
| 2 | Date & Time | `date` | `created_at` from the transaction response or generate independently. |
| 3 | Application Label | `applicationLabel` | `application_label` in `emv_data` in `card_present_details`. |
| 4 | Application Identifier | `applicationIdentifier` | `application_identifier` in `emv_data` in `card_present_details`. |
| 5 | Merchant Id | `merchantId` | `merchant_identity` in the response. |
| 6 | Reference Number | `referenceNumber` | `trace_id` in the response. |
| 7 | Account Number | `accountNumber` | `masked_account_number` in `card_present_details`. |
| 8 | Card Brand | `cardBrand` | `brand` in `card_present_details`. |
| 9 | Entry Mode | `entryMode` | `entry_mode` in `card_present_details`. |
| 10 | Transaction Id | `transactionId` | `id` of the transaction. |
| 11 | Approval Code | `approvalCode` | `approval_code` in `card_present_details`. |
| 12 | Response Code | `responseCode` | null |
| 13 | Response Message | `responseMessage` | `state` of the transaction. |
| 14 | Amount | `amount` | `amount` in $ format. |
| 15 | Cryptogram | `cryptogram` | `cryptogram` in `emv_data` in `card_present_details`. |
| 16 | Transaction Type | `transactionType` | either `Sale` or `Authorization` depending on the method used. |


### Printing receipts with the Finix API

Use the following request to print a receipt for an `Authorization` or `Transfer`.

- Available values for `type` include **MERCHANT** or **BUYER**.
- Be sure to include **true** for `send_receipt_to_buyer` for the action to be taken.
- If the original transaction included a tip or surcharge, use the breakdown to specify for the receipt how it should be broken down. It will not automatically pull these values from the original transaction.


```shell Create Receipt Request
curl https://finix.sandbox-payments-api.com/receipts \
  -H "Content-Type: application/json" \
  -H 'Finix-Version: 2022-02-01' \
  -u US6RE3TRcse4wjkgDCkaLckN:c019209f-46fa-49a8-9e3f-11e5a5a2059b \
  -X POST \
  -d '{
    "send_receipt_to_buyer": true,
    "amount": 19900,
    "requested_delivery_methods": [
      {
        "type": "PRINT",
        "destinations": ["DVkLM1s6FpixYjzzyHBbGjj6"]
      }
    ],
    "entity_id": "TRnmfBz5ciBubAowWBFZvthL",
    "type": "BUYER"
  }'
```

A successful response returns the `receipt` resource. The receipt will print from the `Device` used in the request.

```json Create Receipt Response
{
  "id" : "receipt_cFycSqDHLb5X7jyyTSeFu",
  "created_at" : "2026-10-30T22:24:33.07Z",
  "updated_at" : "2026-10-30T22:24:33.07Z",
  "additional_details" : null,
  "amount" : 19900,
  "amount_breakdown" : null,
  "application_id" : "APt9MknRZxiDMkeReFPMdr7R",
  "currency" : "USD",
  "customization_details" : null,
  "device_id" : null,
  "entity_details" : {
    "id" : "TRnmfBz5ciBubAowWBFZvthL",
    "created_at" : "2026-10-30T19:04:16.14Z",
    "operation_key" : "CARD_NOT_PRESENT_SALE",
    "type" : "TRANSFER"
  },
  "items" : [ ],
  "merchant_details" : {
    "id" : "MUcgYZswyRfqSSbvMsxuaHxZ",
    "business_address" : {
      "city" : "San Mateo",
      "country" : "USA",
      "line1" : "741 Douglass St",
      "line2" : "Apartment 8",
      "postal_code" : "94114",
      "region" : "CA"
    },
    "business_name" : "Finix Flowers",
    "doing_business_as" : "Finix Flowers"
  },
  "network_details" : null,
  "payment_instrument_details" : {
    "id" : "PImXAVgkKVshKWWHUk4xXbve",
    "billing_address" : {
      "city" : "San Mateo",
      "country" : "USA",
      "line1" : "741 Douglass St",
      "line2" : "Apartment 8",
      "postal_code" : "94114",
      "region" : "CA"
    },
    "bin" : "489514",
    "brand" : "VISA",
    "card_type" : "UNKNOWN",
    "last_four" : "0006",
    "name" : "John Smith",
    "type" : "PAYMENT_CARD"
  },
  "receipt_url" : "https://receipt-link.sandbox-payment-form.com/5opFiz",
  "requested_delivery_methods" : [ {
    "type" : "PRINT",
    "destinations" : [ "DVkLM1s6FpixYjzzyHBbGjj6" ]
  } ],
  "send_receipt_to_buyer" : true,
  "type" : "BUYER",
  "_links" : {
    "self" : {
      "href" : "https://finix.sandbox-payments-api.com/receipts/receipt_cFycSqDHLb5X7jyyTSeFu"
    }
  }
}
```

### Customizing the PDF Receipt

Use `customization_details` to add structured metadata and free-text content to the PDF receipt. This field supports three arrays of objects:

| Field | Description | Max Items | Constraints |
|  --- | --- | --- | --- |
| `subheader_attributes` | Key-value pairs rendered as labeled fields near the top of the PDF (e.g. PO Number, Contract ID). Cannot be used together with `additional_details` in the same request. | 5 | `name` ≤ 25 chars, `value` ≤ 25 chars |
| `summary_sections` | Free-text sections rendered **above** the line items. | 5 | `name` ≤ 200 chars, `value` ≤ 2000 chars |
| `footer_sections` | Free-text sections rendered **below** the line items. | 5 | `name` ≤ 200 chars, `value` ≤ 2000 chars |


Example
```shell cURL
curl -i -X POST \
  -u '<username>:<password>' \
  https://finix.sandbox-payments-api.com/receipts \
  -H 'Content-Type: application/json' \
  -d '{
    "amount_breakdown": {
      "additional_buyer_charges": {
        "convenience_amount": 150
      },
      "discount_amount": 100,
      "estimated_tax_amount": 200,
      "shipping_amount": 100,
      "subtotal_amount": 600,
      "tip_amount": 50
    },
    "customization_details": {
      "footer_sections": [
        {
          "name": "Return Policy",
          "value": "All sales final."
        }
      ],
      "subheader_attributes": [
        {
          "name": "Contract ID",
          "value": "CTR-9988"
        },
        {
          "name": "PO Number",
          "value": "PO-12345"
        }
      ],
      "summary_sections": [
        {
          "name": "Terms",
          "value": "Payment due within 30 days."
        },
        {
          "name": "Memo",
          "value": "Thank you for your business."
        }
      ]
    },
    "entity_id": "TRnsfhrr8uPSEnYLUR5N5VWr",
    "items": [
      {
        "description": "Printing paper (1 box).",
        "name": "Printing Paper",
        "price_details": {
          "amount_excluding_sales_tax": 200,
          "currency": "USD",
          "item_discount_amount": 100,
          "price_type": "PROMOTIONAL",
          "regular_amount": 350,
          "sale_amount": 250
        },
        "quantity": 1
      },
      {
        "description": "Printing ink (1 carton).",
        "name": "Printing Ink",
        "price_details": {
          "amount_excluding_sales_tax": 300,
          "currency": "USD",
          "item_discount_amount": 0,
          "price_type": "REGULAR",
          "regular_amount": 350,
          "sale_amount": 350
        },
        "quantity": 1
      }
    ],
    "requested_delivery_methods": [
      {
        "destinations": [
          "johndoe@gmail.com"
        ],
        "type": "EMAIL"
      },
      {
        "destinations": [
          "3346497818"
        ],
        "type": "SMS"
      },
      {
        "destinations": [
          "DV12343234"
        ],
        "type": "PRINT"
      }
    ],
    "send_receipt_to_buyer": true
  }'
```

API Definition
```json
{
  "$ref": "#/components/schemas/createReceipt",
  "components": {
    "schemas": {
      "additional_buyer_charges": {
        "type": "object",
        "description": "Additional charges will be incurred by the buyer.\n\nThe following rules apply:\n\n- The `Merchant` must be enabled to charge these surcharges by setting the appropriate flags for each applicable surcharge to `true` using the PUT `/merchants` endpoint.\n- Only _one_ of the following charges can be applied during creation.\n",
        "nullable": true,
        "properties": {
          "convenience_amount": {
            "type": "integer",
            "description": "A convenience fee to charge the buyer for the transaction. This object property is mutually exclusive.",
            "nullable": true
          },
          "rent_surcharge_amount": {
            "type": "integer",
            "description": "A rent surcharge to charge the buyer for the transaction. This object property is mutually exclusive.",
            "nullable": true
          },
          "surcharge_amount": {
            "type": "integer",
            "description": "A surcharge amount to charge the buyer for the transaction. This object property is mutually exclusive.",
            "nullable": true
          }
        }
      },
      "subtotal_amount": {
        "type": "integer",
        "format": "int32",
        "description": "The subtotal amount, in cents. This value reflects the total of all\nline items before applying any discounts, taxes, shipping fees, or other\nadditional charges.\n"
      },
      "customization_details": {
        "type": "object",
        "nullable": true,
        "description": "Custom attributes and free-form text sections to display on the PDF receipt.\n\n`customization_details.subheader_attributes` is mutually exclusive with `additional_details`. Passing both in the request results in an error.\n",
        "properties": {
          "footer_sections": {
            "type": "array",
            "description": "Free-text sections displayed below the line items of the PDF receipt. For example, you can include a custom footer.",
            "default": [],
            "maxItems": 5,
            "items": {
              "type": "object",
              "description": "Free-text sections displayed below the line items of the PDF receipt.",
              "properties": {
                "name": {
                  "type": "string",
                  "description": "The heading of a free-text section displayed below the line items of the PDF receipt.",
                  "maxLength": 200,
                  "example": "Return Policy"
                },
                "value": {
                  "type": "string",
                  "description": "The body of a free-text section displayed below the line items of the PDF receipt.",
                  "maxLength": 2000,
                  "example": "30-day return window with receipt. No refunds on clearance items. Exchanges allowed within 14 days."
                }
              },
              "required": [
                "name",
                "value"
              ]
            }
          },
          "subheader_attributes": {
            "type": "array",
            "description": "Fields shown near the top of the PDF, such as an invoice number or order ID.\n\n`customization_details.subheader_attributes` is mutually exclusive with `additional_details`. Passing both in the request results in an error.\n",
            "maxItems": 5,
            "default": [],
            "items": {
              "type": "object",
              "description": "Key-value pairs shown near the top of the PDF.",
              "properties": {
                "name": {
                  "type": "string",
                  "description": "The attribute name shown near the top of the PDF. This should be a short, human-readable identifier such as \"Invoice Number\", \"VIN\", \"Service Date\", or \"Technician\".",
                  "maxLength": 25,
                  "example": "PO Number"
                },
                "value": {
                  "type": "string",
                  "description": "The corresponding value for the attribute shown near the top of the PDF. This can be any string that provides relevant context or information, such as an invoice number, vehicle identification number, or date.",
                  "maxLength": 25,
                  "example": "PO-12345"
                }
              },
              "required": [
                "name",
                "value"
              ]
            }
          },
          "summary_sections": {
            "type": "array",
            "description": "Free-text sections displayed above the line items of the PDF receipt, such as payment instructions.\n",
            "default": [],
            "maxItems": 5,
            "items": {
              "type": "object",
              "description": "Free-text sections displayed above the line items of the PDF receipt.",
              "properties": {
                "name": {
                  "type": "string",
                  "description": "The heading of a free-text section displayed above the line items of the PDF receipt.",
                  "maxLength": 200,
                  "example": "Payment Instructions"
                },
                "value": {
                  "type": "string",
                  "description": "The body of a free-text section displayed above the line items of the PDF receipt.",
                  "maxLength": 2000,
                  "example": "Make a payment using our online portal."
                }
              },
              "required": [
                "name",
                "value"
              ]
            }
          }
        }
      },
      "currency": {
        "type": "string",
        "description": "ISO 4217 3-letter currency code.",
        "enum": [
          "CAD",
          "USD"
        ]
      },
      "items": {
        "type": "array",
        "default": [],
        "description": "An itemized list of products/services.",
        "items": {
          "type": "object",
          "properties": {
            "description": {
              "type": "string",
              "description": "A item description."
            },
            "image_details": {
              "type": "object",
              "nullable": true,
              "description": "Product/service image locations.",
              "properties": {
                "primary_image_url": {
                  "type": "string",
                  "description": "The location of a item image."
                },
                "alternative_image_urls": {
                  "type": "array",
                  "description": "The locations of backup images if there is an issue with the primary image.",
                  "items": {
                    "type": "string"
                  }
                }
              }
            },
            "item_details": {
              "type": "object",
              "nullable": true,
              "description": "Additional details about the item.",
              "properties": {
                "commodity_code": {
                  "type": "string",
                  "nullable": true,
                  "description": "Commodity code for the item.",
                  "example": "175-62-20"
                },
                "cost_per_unit": {
                  "type": "integer",
                  "nullable": true,
                  "description": "Cost per unit in cents.",
                  "example": 500
                },
                "merchant_product_code": {
                  "type": "string",
                  "nullable": true,
                  "description": "Merchant's product code for the item.",
                  "example": "1149611"
                },
                "unit_of_measure": {
                  "type": "string",
                  "nullable": true,
                  "description": "Unit of measure for the item.",
                  "example": "BX"
                }
              }
            },
            "name": {
              "type": "string",
              "description": "The item name."
            },
            "price_details": {
              "type": "object",
              "description": "Additional details about the price.",
              "properties": {
                "sale_amount": {
                  "type": "integer",
                  "description": "The on-sale price of the item if it is different from the `regular_amount`."
                },
                "currency": {
                  "$ref": "#/components/schemas/currency"
                },
                "price_type": {
                  "type": "string",
                  "description": "Whether the price is on-sale (`PROMOTIONAL`) or the normal price (`REGULAR`).",
                  "enum": [
                    "PROMOTIONAL",
                    "REGULAR"
                  ]
                },
                "regular_amount": {
                  "type": "integer",
                  "description": "The standard price of the item without any adjustments applied (e.g. discounts, taxes, sales)."
                },
                "amount_excluding_sales_tax": {
                  "type": "integer",
                  "description": "The amount excluding sales tax."
                },
                "item_discount_amount": {
                  "type": "integer",
                  "description": "The item discount."
                }
              }
            },
            "quantity": {
              "type": "integer",
              "description": "The item quantity."
            }
          }
        }
      },
      "createReceipt": {
        "type": "object",
        "title": "Receipt - All Fields",
        "properties": {
          "additional_details": {
            "type": "array",
            "nullable": true,
            "description": "An array of key-value pairs for including metadata or custom information related to the receipt. Each entry must contain a `name` and a corresponding `value` as strings.\n\n`additional_details` is mutually exclusive with `customization_details.subheader_attributes`. Passing both in the request results in an error.\n",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string",
                  "description": "The label or title for the additional detail. This should be a short, human-readable identifier such as \"Invoice Number\", \"VIN\", \"Service Date\", or \"Technician\".",
                  "maxLength": 25,
                  "example": "Invoice Number"
                },
                "value": {
                  "type": "string",
                  "description": "The corresponding value for the detail. This can be any string that provides relevant context or information, such as an invoice number, vehicle identification number, or date.",
                  "maxLength": 25,
                  "example": "4FEBVZP0-0002"
                }
              },
              "required": [
                "name",
                "value"
              ]
            }
          },
          "amount_breakdown": {
            "type": "object",
            "description": "The individual charges/fees that add up to the total amount.",
            "properties": {
              "additional_buyer_charges": {
                "description": "Additional charges that the buyer paid.",
                "allOf": [
                  {
                    "$ref": "#/components/schemas/additional_buyer_charges"
                  }
                ]
              },
              "discount_amount": {
                "type": "integer",
                "description": "A reduction applied to the total amount."
              },
              "estimated_tax_amount": {
                "type": "integer",
                "description": "The estimated amount of tax applied to the order."
              },
              "shipping_amount": {
                "type": "integer",
                "description": "The amount charged for shipping the items in the order."
              },
              "subtotal_amount": {
                "$ref": "#/components/schemas/subtotal_amount"
              },
              "tip_amount": {
                "type": "integer",
                "description": "The tip amount included in the order total."
              }
            }
          },
          "customization_details": {
            "$ref": "#/components/schemas/customization_details"
          },
          "entity_id": {
            "type": "string",
            "description": "The ID of the `Transfer` or `Authorization` for which the receipt must be generated."
          },
          "items": {
            "$ref": "#/components/schemas/items"
          },
          "requested_delivery_methods": {
            "type": "array",
            "description": "An array of delivery methods used to send the receipt.",
            "items": {
              "type": "object",
              "description": "An individual delivery method.",
              "required": [
                "type",
                "destinations"
              ],
              "properties": {
                "destinations": {
                  "type": "array",
                  "description": "A list of destinations to send the receipt.",
                  "items": {
                    "type": "string",
                    "description": "A destination to send the receipt."
                  }
                },
                "type": {
                  "type": "string",
                  "description": "The type of delivery method used to send the receipt.",
                  "enum": [
                    "EMAIL",
                    "PRINT",
                    "SMS"
                  ]
                }
              }
            }
          },
          "send_receipt_to_buyer": {
            "type": "boolean",
            "description": "Whether to send a receipt to the buyer."
          }
        },
        "required": [
          "entity_id",
          "send_receipt_to_buyer"
        ]
      }
    }
  }
}
```

A successful response returns a `201 Created` status code with the newly created resource:

Example
Receipt
```json Receipt
{
  "id": "receipt_cGto8go8y9hXrwKt3wtmx",
  "created_at": "2026-11-28T00:30:32.01Z",
  "updated_at": "2026-11-28T00:30:32.01Z",
  "additional_details": null,
  "amount": 1000,
  "amount_breakdown": {
    "additional_buyer_charges": {
      "convenience_amount": 150,
      "rent_surcharge_amount": null,
      "surcharge_amount": null
    },
    "customs_duty_amount": null,
    "discount_amount": 100,
    "estimated_tax_amount": 200,
    "shipping_amount": 100,
    "subtotal_amount": 600,
    "tip_amount": 50
  },
  "application_id": "APt9MknRZxiDMkeReFPMdr7R",
  "currency": "USD",
  "customization_details": { // [!code highlight]
    "subheader_attributes": [ // [!code highlight]
      { // [!code highlight]
        "name": "Contract ID", // [!code highlight]
        "value": "CTR-9988" // [!code highlight]
      }, // [!code highlight]
      { // [!code highlight]
        "name": "PO Number", // [!code highlight]
        "value": "PO-12345" // [!code highlight]
      } // [!code highlight]
    ], // [!code highlight]
    "summary_sections": [ // [!code highlight]
      { // [!code highlight]
        "name": "Terms", // [!code highlight]
        "value": "Payment due within 30 days." // [!code highlight]
      }, // [!code highlight]
      { // [!code highlight]
        "name": "Memo", // [!code highlight]
        "value": "Thank you for your business." // [!code highlight]
      } // [!code highlight]
    ], // [!code highlight]
    "footer_sections": [ // [!code highlight]
      { // [!code highlight]
        "name": "Return Policy", // [!code highlight]
        "value": "All sales final." // [!code highlight]
      } // [!code highlight]
    ] // [!code highlight]
  }, // [!code highlight]
  "device_id": null,
  "entity_details": {
    "id": "TRnsfhrr8uPSEnYLUR5N5VWr",
    "created_at": "2026-11-27T23:24:22.96Z",
    "operation_key": "CARD_NOT_PRESENT_SALE",
    "type": "TRANSFER"
  },
  "items": [
    {
      "description": "Printing paper (1 box).",
      "image_details": null,
      "item_details": null,
      "name": "Printing Paper",
      "price_details": {
        "sale_amount": 250,
        "currency": "USD",
        "price_type": "PROMOTIONAL",
        "regular_amount": 350,
        "amount_excluding_sales_tax": 200,
        "item_discount_amount": 100
      },
      "quantity": 1
    },
    {
      "description": "Printing ink (1 carton).",
      "image_details": null,
      "item_details": null,
      "name": "Printing Ink",
      "price_details": {
        "sale_amount": 350,
        "currency": "USD",
        "price_type": "REGULAR",
        "regular_amount": 350,
        "amount_excluding_sales_tax": 300,
        "item_discount_amount": 0
      },
      "quantity": 1
    }
  ],
  "merchant_details": {
    "id": "MUfUoWEk3MBJ9m5cCnggfKMf",
    "business_address": {
      "city": "San Mateo",
      "country": "USA",
      "line1": "741 Douglass St",
      "line2": "Apartment 8",
      "postal_code": "94114",
      "region": "CA"
    },
    "business_name": "Finix Flowers",
    "doing_business_as": "Finix Flowers"
  },
  "network_details": null,
  "payment_instrument_details": {
    "id": "PIjkxmtZreJ3TTGE3BciARnf",
    "billing_address": {
      "city": "San Francisco",
      "country": "USA",
      "line1": "900 Metro Center Blv",
      "line2": null,
      "postal_code": "94404",
      "region": "CA"
    },
    "bin": "489514",
    "brand": "VISA",
    "card_type": "UNKNOWN",
    "last_four": "0006",
    "name": "John Doe",
    "type": "PAYMENT_CARD"
  },
  "receipt_url": "https://receipt-link.sandbox-payment-form.com/mOcstHUwmgkN",
  "requested_delivery_methods": [
    {
      "type": "EMAIL",
      "destinations": [
        "johndoe@gmail.com"
      ]
    },
    {
      "type": "SMS",
      "destinations": [
        "3346497818"
      ]
    },
    {
      "type": "PRINT",
      "destinations": [
        "DV12343234"
      ]
    }
  ],
  "send_receipt_to_buyer": true,
  "type": "BUYER",
  "_links": {
    "self": {
      "href": "https://finix.sandbox-payments-api.com/receipts/receipt_cGto8go8y9hXrwKt3wtmx"
    }
  }
}
```

API Definition
```json
{
  "$ref": "#/components/schemas/receipt",
  "components": {
    "schemas": {
      "id": {
        "type": "string",
        "minLength": 1,
        "description": "The ID of the resource."
      },
      "created_at": {
        "type": "string",
        "format": "date-time",
        "description": "Timestamp of when the object was created."
      },
      "updated_at": {
        "type": "string",
        "format": "date-time",
        "description": "Timestamp of when the object was last updated."
      },
      "amount": {
        "type": "integer",
        "description": "The total amount that will be debited in cents (e.g. 100 cents to debit $1.00).",
        "example": 5000,
        "format": "int64"
      },
      "application_id": {
        "type": "string",
        "minLength": 1,
        "description": "ID of the `Application` the resource was created under."
      },
      "currency": {
        "type": "string",
        "description": "ISO 4217 3-letter currency code.",
        "enum": [
          "CAD",
          "USD"
        ]
      },
      "subtotal_amount": {
        "type": "integer",
        "format": "int32",
        "description": "The subtotal amount, in cents. This value reflects the total of all\nline items before applying any discounts, taxes, shipping fees, or other\nadditional charges.\n"
      },
      "additional_buyer_charges": {
        "type": "object",
        "description": "Additional charges will be incurred by the buyer.\n\nThe following rules apply:\n\n- The `Merchant` must be enabled to charge these surcharges by setting the appropriate flags for each applicable surcharge to `true` using the PUT `/merchants` endpoint.\n- Only _one_ of the following charges can be applied during creation.\n",
        "nullable": true,
        "properties": {
          "convenience_amount": {
            "type": "integer",
            "description": "A convenience fee to charge the buyer for the transaction. This object property is mutually exclusive.",
            "nullable": true
          },
          "rent_surcharge_amount": {
            "type": "integer",
            "description": "A rent surcharge to charge the buyer for the transaction. This object property is mutually exclusive.",
            "nullable": true
          },
          "surcharge_amount": {
            "type": "integer",
            "description": "A surcharge amount to charge the buyer for the transaction. This object property is mutually exclusive.",
            "nullable": true
          }
        }
      },
      "customization_details": {
        "type": "object",
        "nullable": true,
        "description": "Custom attributes and free-form text sections to display on the PDF receipt.\n\n`customization_details.subheader_attributes` is mutually exclusive with `additional_details`. Passing both in the request results in an error.\n",
        "properties": {
          "footer_sections": {
            "type": "array",
            "description": "Free-text sections displayed below the line items of the PDF receipt. For example, you can include a custom footer.",
            "default": [],
            "maxItems": 5,
            "items": {
              "type": "object",
              "description": "Free-text sections displayed below the line items of the PDF receipt.",
              "properties": {
                "name": {
                  "type": "string",
                  "description": "The heading of a free-text section displayed below the line items of the PDF receipt.",
                  "maxLength": 200,
                  "example": "Return Policy"
                },
                "value": {
                  "type": "string",
                  "description": "The body of a free-text section displayed below the line items of the PDF receipt.",
                  "maxLength": 2000,
                  "example": "30-day return window with receipt. No refunds on clearance items. Exchanges allowed within 14 days."
                }
              },
              "required": [
                "name",
                "value"
              ]
            }
          },
          "subheader_attributes": {
            "type": "array",
            "description": "Fields shown near the top of the PDF, such as an invoice number or order ID.\n\n`customization_details.subheader_attributes` is mutually exclusive with `additional_details`. Passing both in the request results in an error.\n",
            "maxItems": 5,
            "default": [],
            "items": {
              "type": "object",
              "description": "Key-value pairs shown near the top of the PDF.",
              "properties": {
                "name": {
                  "type": "string",
                  "description": "The attribute name shown near the top of the PDF. This should be a short, human-readable identifier such as \"Invoice Number\", \"VIN\", \"Service Date\", or \"Technician\".",
                  "maxLength": 25,
                  "example": "PO Number"
                },
                "value": {
                  "type": "string",
                  "description": "The corresponding value for the attribute shown near the top of the PDF. This can be any string that provides relevant context or information, such as an invoice number, vehicle identification number, or date.",
                  "maxLength": 25,
                  "example": "PO-12345"
                }
              },
              "required": [
                "name",
                "value"
              ]
            }
          },
          "summary_sections": {
            "type": "array",
            "description": "Free-text sections displayed above the line items of the PDF receipt, such as payment instructions.\n",
            "default": [],
            "maxItems": 5,
            "items": {
              "type": "object",
              "description": "Free-text sections displayed above the line items of the PDF receipt.",
              "properties": {
                "name": {
                  "type": "string",
                  "description": "The heading of a free-text section displayed above the line items of the PDF receipt.",
                  "maxLength": 200,
                  "example": "Payment Instructions"
                },
                "value": {
                  "type": "string",
                  "description": "The body of a free-text section displayed above the line items of the PDF receipt.",
                  "maxLength": 2000,
                  "example": "Make a payment using our online portal."
                }
              },
              "required": [
                "name",
                "value"
              ]
            }
          }
        }
      },
      "operation_key": {
        "description": "Details the operation that's performed in the transaction.",
        "type": "string",
        "enum": [
          "PUSH_TO_CARD",
          "PULL_FROM_CARD",
          "CARD_PRESENT_SALE",
          "CARD_PRESENT_UNREFERENCED_REFUND",
          "CARD_NOT_PRESENT_SALE",
          "CARD_NOT_PRESENT_CAPTURE",
          "SALE",
          "UNREFERENCED_REFUND",
          "MERCHANT_CREDIT_ADJUSTMENT",
          "MERCHANT_DEBIT_ADJUSTMENT"
        ],
        "nullable": true
      },
      "items": {
        "type": "array",
        "default": [],
        "description": "An itemized list of products/services.",
        "items": {
          "type": "object",
          "properties": {
            "description": {
              "type": "string",
              "description": "A item description."
            },
            "image_details": {
              "type": "object",
              "nullable": true,
              "description": "Product/service image locations.",
              "properties": {
                "primary_image_url": {
                  "type": "string",
                  "description": "The location of a item image."
                },
                "alternative_image_urls": {
                  "type": "array",
                  "description": "The locations of backup images if there is an issue with the primary image.",
                  "items": {
                    "type": "string"
                  }
                }
              }
            },
            "item_details": {
              "type": "object",
              "nullable": true,
              "description": "Additional details about the item.",
              "properties": {
                "commodity_code": {
                  "type": "string",
                  "nullable": true,
                  "description": "Commodity code for the item.",
                  "example": "175-62-20"
                },
                "cost_per_unit": {
                  "type": "integer",
                  "nullable": true,
                  "description": "Cost per unit in cents.",
                  "example": 500
                },
                "merchant_product_code": {
                  "type": "string",
                  "nullable": true,
                  "description": "Merchant's product code for the item.",
                  "example": "1149611"
                },
                "unit_of_measure": {
                  "type": "string",
                  "nullable": true,
                  "description": "Unit of measure for the item.",
                  "example": "BX"
                }
              }
            },
            "name": {
              "type": "string",
              "description": "The item name."
            },
            "price_details": {
              "type": "object",
              "description": "Additional details about the price.",
              "properties": {
                "sale_amount": {
                  "type": "integer",
                  "description": "The on-sale price of the item if it is different from the `regular_amount`."
                },
                "currency": {
                  "$ref": "#/components/schemas/currency"
                },
                "price_type": {
                  "type": "string",
                  "description": "Whether the price is on-sale (`PROMOTIONAL`) or the normal price (`REGULAR`).",
                  "enum": [
                    "PROMOTIONAL",
                    "REGULAR"
                  ]
                },
                "regular_amount": {
                  "type": "integer",
                  "description": "The standard price of the item without any adjustments applied (e.g. discounts, taxes, sales)."
                },
                "amount_excluding_sales_tax": {
                  "type": "integer",
                  "description": "The amount excluding sales tax."
                },
                "item_discount_amount": {
                  "type": "integer",
                  "description": "The item discount."
                }
              }
            },
            "quantity": {
              "type": "integer",
              "description": "The item quantity."
            }
          }
        }
      },
      "country": {
        "type": "string",
        "enum": [
          "ABW",
          "AFG",
          "AGO",
          "AIA",
          "ALA",
          "ALB",
          "AND",
          "ARE",
          "ARG",
          "ARM",
          "ASM",
          "ATA",
          "ATF",
          "ATG",
          "AUS",
          "AUT",
          "AZE",
          "BDI",
          "BEL",
          "BEN",
          "BES",
          "BFA",
          "BGD",
          "BGR",
          "BHR",
          "BHS",
          "BIH",
          "BLM",
          "BLR",
          "BLZ",
          "BMU",
          "BOL",
          "BRA",
          "BRB",
          "BRN",
          "BTN",
          "BVT",
          "BWA",
          "CAF",
          "CAN",
          "CCK",
          "CHE",
          "CHL",
          "CHN",
          "CIV",
          "CMR",
          "COD",
          "COG",
          "COK",
          "COL",
          "COM",
          "CPV",
          "CRI",
          "CUB",
          "CUW",
          "CXR",
          "CYM",
          "CYP",
          "CZE",
          "DEU",
          "DJI",
          "DMA",
          "DNK",
          "DOM",
          "DZA",
          "ECU",
          "EGY",
          "ERI",
          "ESH",
          "ESP",
          "EST",
          "ETH",
          "FIN",
          "FJI",
          "FLK",
          "FRA",
          "FRO",
          "FSM",
          "GAB",
          "GBR",
          "GEO",
          "GGY",
          "GHA",
          "GIB",
          "GIN",
          "GLP",
          "GMB",
          "GNB",
          "GNQ",
          "GRC",
          "GRD",
          "GRL",
          "GTM",
          "GUF",
          "GUM",
          "GUY",
          "HKG",
          "HMD",
          "HND",
          "HRV",
          "HTI",
          "HUN",
          "IDN",
          "IMN",
          "IND",
          "IOT",
          "IRL",
          "IRN",
          "IRQ",
          "ISL",
          "ISR",
          "ITA",
          "JAM",
          "JEY",
          "JOR",
          "JPN",
          "KAZ",
          "KEN",
          "KGZ",
          "KHM",
          "KIR",
          "KNA",
          "KOR",
          "KWT",
          "LAO",
          "LBN",
          "LBR",
          "LBY",
          "LCA",
          "LIE",
          "LKA",
          "LSO",
          "LTU",
          "LUX",
          "LVA",
          "MAC",
          "MAF",
          "MAR",
          "MCO",
          "MDA",
          "MDG",
          "MDV",
          "MEX",
          "MHL",
          "MKD",
          "MLI",
          "MLT",
          "MMR",
          "MNE",
          "MNG",
          "MNP",
          "MRT",
          "MSR",
          "MTQ",
          "MUS",
          "MWI",
          "MYS",
          "MYT",
          "NAM",
          "NCL",
          "NER",
          "NFK",
          "NGA",
          "NIC",
          "NIU",
          "NLD",
          "NOR",
          "NPL",
          "NRU",
          "NZL",
          "OMN",
          "PAK",
          "PAN",
          "PCN",
          "PER",
          "PHL",
          "PLW",
          "PNG",
          "POL",
          "PRI",
          "PRK",
          "PRT",
          "PRY",
          "PSE",
          "PYF",
          "QAT",
          "REU",
          "ROU",
          "RUS",
          "RWA",
          "SAU",
          "SDN",
          "SEN",
          "SGP",
          "SGS",
          "SHN",
          "SJM",
          "SLB",
          "SLE",
          "SLV",
          "SMR",
          "SOM",
          "SPM",
          "SRB",
          "SSD",
          "STP",
          "SUR",
          "SVK",
          "SVN",
          "SWE",
          "SWZ",
          "SXM",
          "SYC",
          "SYR",
          "TCA",
          "TCD",
          "TGO",
          "THA",
          "TJK",
          "TKL",
          "TKM",
          "TLS",
          "TON",
          "TTO",
          "TUN",
          "TUR",
          "TUV",
          "TWN",
          "TZA",
          "UGA",
          "UKR",
          "UMI",
          "URY",
          "USA",
          "UZB",
          "VAT",
          "VCT",
          "VEN",
          "VGB",
          "VIR",
          "VNM",
          "VUT",
          "WLF",
          "WSM",
          "XKX",
          "YEM",
          "ZAF",
          "ZMB",
          "ZWE"
        ],
        "nullable": true
      },
      "receipt": {
        "type": "object",
        "properties": {
          "id": {
            "$ref": "#/components/schemas/id"
          },
          "created_at": {
            "$ref": "#/components/schemas/created_at"
          },
          "updated_at": {
            "$ref": "#/components/schemas/updated_at"
          },
          "additional_details": {
            "type": "array",
            "nullable": true,
            "description": "An array of key-value pairs for including metadata or custom information related to the receipt. Each entry must contain a `name` and a corresponding `value` as strings.\n",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string",
                  "description": "The label or title for the additional detail. This should be a short, human-readable identifier such as \"Invoice Number\", \"VIN\", \"Service Date\", or \"Technician\".",
                  "maxLength": 25,
                  "example": "Invoice Number"
                },
                "value": {
                  "type": "string",
                  "description": "The corresponding value for the detail. This can be any string that provides relevant context or information, such as an invoice number, vehicle identification number, or date.",
                  "maxLength": 25,
                  "example": "4FEBVZP0-0002"
                }
              },
              "required": [
                "name",
                "value"
              ]
            }
          },
          "amount": {
            "$ref": "#/components/schemas/amount"
          },
          "application_id": {
            "$ref": "#/components/schemas/application_id"
          },
          "currency": {
            "$ref": "#/components/schemas/currency"
          },
          "amount_breakdown": {
            "type": "object",
            "description": "The individual charges/fees that add up to the total amount.",
            "nullable": true,
            "properties": {
              "subtotal_amount": {
                "$ref": "#/components/schemas/subtotal_amount"
              },
              "discount_amount": {
                "type": "integer",
                "description": "A reduction applied to the total amount.",
                "nullable": true
              },
              "shipping_amount": {
                "type": "integer",
                "description": "The amount charged for shipping the items in the order.",
                "nullable": true
              },
              "estimated_tax_amount": {
                "type": "integer",
                "description": "The estimated amount of tax applied to the order.",
                "nullable": true
              },
              "tip_amount": {
                "type": "integer",
                "description": "The tip amount included in the order total.",
                "nullable": true
              },
              "additional_buyer_charges": {
                "description": "Additional charges that the buyer paid.",
                "allOf": [
                  {
                    "$ref": "#/components/schemas/additional_buyer_charges"
                  }
                ]
              },
              "customs_duty_amount": {
                "type": "integer",
                "description": "The amount charged for customs duties.",
                "nullable": true
              }
            }
          },
          "customization_details": {
            "$ref": "#/components/schemas/customization_details"
          },
          "send_receipt_to_buyer": {
            "type": "boolean",
            "description": "Whether to send a receipt to the buyer."
          },
          "device_id": {
            "type": "string",
            "description": "Applies to [in-person payments](/guides/in-person-payments). The ID of the Point-of-Sale terminal used to process the payment.",
            "nullable": true
          },
          "entity_details": {
            "type": "object",
            "description": "The `Transfer` or `Authorization` details from which to generate the receipt.",
            "properties": {
              "id": {
                "type": "string",
                "description": "The ID of the `Transfer` or `Authorization`."
              },
              "created_at": {
                "type": "string",
                "description": "The timestamp when the `Transfer` or `Authorization` was created."
              },
              "operation_key": {
                "$ref": "#/components/schemas/operation_key"
              },
              "type": {
                "type": "string",
                "description": "The type of transaction the receipt was created for.",
                "enum": [
                  "TRANSFER",
                  "AUTHORIZATION"
                ]
              }
            }
          },
          "type": {
            "type": "string",
            "description": "The type of receipt, either for the customer (`BUYER`) or the merchant (`MERCHANT`) for a CP (card-present) transaction. For a CNP transaction, the `type` will be `BUYER`.\n",
            "enum": [
              "BUYER",
              "MERCHANT"
            ]
          },
          "items": {
            "$ref": "#/components/schemas/items"
          },
          "merchant_details": {
            "type": "object",
            "description": "Object containing `Merchant` details.",
            "properties": {
              "id": {
                "type": "string",
                "description": "The ID of the `Merchant`."
              },
              "business_name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 120,
                "description": "The merchant's legal business name. For a sole proprietorship, pass the owner's legal first name, last name, and middle initial.\n",
                "nullable": true
              },
              "doing_business_as": {
                "type": "string",
                "minLength": 1,
                "maxLength": 60,
                "description": "Alternate names of the business. If there are no other names, pass the same value used for `business_name`.",
                "nullable": true
              },
              "business_address": {
                "type": "object",
                "description": "The primary address for the legal entity.",
                "nullable": true,
                "properties": {
                  "city": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 20,
                    "description": "City.",
                    "nullable": true
                  },
                  "country": {
                    "$ref": "#/components/schemas/country"
                  },
                  "line1": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 35,
                    "description": "The first line of the address.",
                    "nullable": true
                  },
                  "line2": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 35,
                    "description": "The second line of the address.",
                    "nullable": true
                  },
                  "postal_code": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 7,
                    "description": "The zip or postal code.",
                    "nullable": true
                  },
                  "region": {
                    "type": "string",
                    "minLength": 1,
                    "description": "2-letter state code.",
                    "nullable": true
                  }
                }
              }
            }
          },
          "payment_instrument_details": {
            "type": "object",
            "description": "Object containing `Payment Instrument` details.",
            "properties": {
              "id": {
                "type": "string",
                "description": "The ID of the `Payment Instrument`."
              },
              "type": {
                "type": "string",
                "description": "The type of `Payment Instrument`.",
                "enum": [
                  "PAYMENT_CARD"
                ]
              },
              "billing_address": {
                "type": "object",
                "description": "The primary address associated with the `Payment Instrument`.",
                "properties": {
                  "city": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 20,
                    "description": "City.",
                    "nullable": true
                  },
                  "country": {
                    "$ref": "#/components/schemas/country"
                  },
                  "line1": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 35,
                    "description": "The first line of the address.",
                    "nullable": true
                  },
                  "line2": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 35,
                    "description": "The second line of the address.",
                    "nullable": true
                  },
                  "postal_code": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 7,
                    "description": "The zip or postal code.",
                    "nullable": true
                  },
                  "region": {
                    "type": "string",
                    "minLength": 1,
                    "description": "2-letter state code.",
                    "nullable": true
                  }
                }
              },
              "bin": {
                "type": "string",
                "description": "The Bank Identification Number for the `Payment Instrument`."
              },
              "brand": {
                "type": "string",
                "enum": [
                  "UNKNOWN",
                  "DINERS_CLUB_INTERNATIONAL",
                  "DANKORT",
                  "MIR",
                  "TROY",
                  "UATP",
                  "CHINA_T_UNION",
                  "CHINA_UNION_PAY",
                  "AMERICAN_EXPRESS",
                  "VERVE",
                  "RUPAY",
                  "DISCOVER",
                  "JCB",
                  "MASTERCARD",
                  "INTERPAYMENT",
                  "INSTAPAYMENT",
                  "MAESTRO",
                  "VISA",
                  "LANKAPAY",
                  "DINERS_CLUB",
                  "INTERAC"
                ],
                "description": "The `brand` of the card saved in the `Payment Instrument`."
              },
              "card_type": {
                "type": "string",
                "enum": [
                  "CREDIT",
                  "DEBIT",
                  "HSA_FSA",
                  "NON_RELOADABLE_PREPAID",
                  "RELOADABLE_PREPAID",
                  "UNKNOWN"
                ],
                "description": "The type of payment card saved in the `Payment Instrument`."
              },
              "last_four": {
                "type": "string",
                "description": "The last four digits of the card or bank account number."
              },
              "name": {
                "type": "string",
                "description": "The name of the bank account or card owner.",
                "nullable": true
              }
            }
          },
          "network_details": {
            "type": "object",
            "description": "An object containing EMV data.",
            "nullable": true,
            "properties": {
              "application_label": {
                "type": "string",
                "description": "The EMV application label. Tag 50 from the EMVCo standard.",
                "nullable": true
              },
              "application_identifier": {
                "type": "string",
                "description": "The ID of the application used in the transaction. Tag 9F06 from the EMVCo standard.",
                "nullable": true
              },
              "cryptogram": {
                "type": "string",
                "description": "The cryptogram returned by the card. Tag 9F26 of the EMVCo standard.",
                "nullable": true
              },
              "approval_code": {
                "type": "string",
                "description": "The unique ID used to identify the approval of the `Transfer`.",
                "nullable": true
              }
            }
          },
          "requested_delivery_methods": {
            "type": "array",
            "default": [],
            "description": "An array of delivery methods used to send the receipt.",
            "items": {
              "type": "object",
              "description": "An individual delivery method.",
              "required": [
                "type",
                "destinations"
              ],
              "properties": {
                "type": {
                  "type": "string",
                  "description": "The type of delivery method used to send the receipt.",
                  "enum": [
                    "EMAIL",
                    "SMS",
                    "PRINT"
                  ]
                },
                "destinations": {
                  "type": "array",
                  "description": "A list of destinations to send the receipt.",
                  "items": {
                    "type": "string",
                    "description": "A destination to send the receipt."
                  }
                }
              }
            }
          },
          "receipt_url": {
            "type": "string",
            "description": "The location of the receipt on Finix's Amazon S3."
          },
          "_links": {
            "type": "object",
            "description": "An object containing link(s) relevant to the request. You can store these links for follow-up requests.",
            "properties": {
              "self": {
                "type": "object",
                "properties": {
                  "href": {
                    "type": "string",
                    "description": "The path to the new resource."
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}
```

## Additional requirements

### Prompting users for preferred receipts

If the `prompt_receipt_confirmation` value is set to true for the terminal, it will present a page to the cardholder that will prompt them to select how they want their receipt.

When enabled, the terminal will display a screen asking the customer how they'd like to receive their receipt. You control the available options by setting `available_receipt_methods`. Supported values include:

- `PRINT`
- `EMAIL`
- `SMS`


Once the customer selects a method and submits relevant contact information, Finix will trigger a webhook:

- `entity: receipt`
- `type: created`


This webhook includes all receipt details, including the delivery method and destination (e.g., email address or phone number), so you can take the appropriate action—like printing or sending the receipt.

### Receipt requirements

To stay compliant with card networks and processing requirements, merchant must be able to print two copies of the receipt:

- **Cardholder Copy** – A separate receipt for the buyer. "Cardholder Copy" must be printed on the last line of the receipt.
- **Merchant Copy** - A second copy for your business records. "Merchant Copy" must be printed on the last line of the receipt.


Depending on the transaction, many of the fields can return null. You can either omit the line or display a placeholder value such as `N/A` or `0`.

### Integrating with receipt printers

- **Serial Printers** - Encode the receipt data using the required printer command set (e.g., ESC/POS or Star commands). Use programs like [Socket.IO](https://socket.io/) to send the formatted data to the printer.
- **Network Printers** - Send receipt data directly over the network to supported IP printers.


### Digital vs. paper receipts

You may provide digital receipts (email or SMS), but you must always be able to provide a printed receipt if the customer requests one.

While the receipt doesn't have to be printed on thermal receipt paper, it's recommended, as thermal printers don't require ink and are more cost-effective over time.