The Receipt
resource generates a receipt for Transfers or Authorizations. You can then send the Receipt
via Email, SMS, or use the information from the Receipt
to send it yourself.
Create a Receipt
resource to generate a receipt for a Transfer or Authorization.
A Receipt
will include basic details, such as the total amount, buyer billing information, merchant name, and contact information.
You can provide additional details on the Receipt
as described below.
You can provide a breakdown of the additional charges/fees (amount_breakdown
) that add up to the total amount, such as subtotal, shipping amount, or surcharge.
You can provide details of the products in the order (items
), including product name, description, price, quantity, etc., for each item in this order.
Finix-Version | string Default: 2018-01-01 Specify the API version of your request. For more details, see Versioning. Example: 2022-02-01 |
A single Receipt
object.
Authentication information is missing or invalid
Forbidden
Object does not exist
Invalid field
{- "id": "receipt_cdGdu7mHL2DaEHHYf8PPg",
- "created_at": "2024-07-30T00:26:55.87Z",
- "updated_at": "2024-07-30T00:26:55.87Z",
- "amount": 22300,
- "currency": "USD",
- "amount_breakdown": null,
- "send_receipt_to_buyer": true,
- "device_id": null,
- "entity_details": {
- "id": "TRraKDGt53y1XeTbeCkXYMkn",
- "created_at": "2024-07-30T00:22:25.28Z",
- "type": "TRANSFER"
}, - "type": "BUYER",
- "items": [ ],
- "merchant_details": {
- "id": "MUeDVrf2ahuKc9Eg5TeZugvs",
- "business_name": "Dunder Mifflin",
- "doing_business_as": "Dunder Mifflin",
- "business_address": {
- "city": "San Mateo",
- "country": "USA",
- "line1": "741 Douglass St",
- "line2": "Apartment 8",
- "postal_code": "94114",
- "region": "CA"
}
}, - "payment_instrument_details": {
- "id": "PIe2YvpcjvoVJ6PzoRPBK137",
- "type": "PAYMENT_CARD",
- "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": "Amy White"
}, - "network_details": null,
- "requested_delivery_methods": [
- {
- "type": "EMAIL",
- "destinations": [
- "johndoe@gmail.com"
]
}, - {
- "type": "SMS",
- "destinations": [
- "3346497818"
]
}, - {
- "type": "PRINT",
- "destinations": [
- "DV12343234"
]
}
], - "_links": {
}
}
Retrieve the details of a previously created Receipt
.
Finix-Version | string Default: 2018-01-01 Specify the API version of your request. For more details, see Versioning. Example: 2022-02-01 |
A single Receipt
object.
Authentication information is missing or invalid
Forbidden
Object does not exist
Invalid field
curl "https://finix.sandbox-payments-api.com/receipts/receipt_cdGdu7mHL2DaEHHYf8PPg" \ -H "Finix-Version: 2022-02-01" \ -u USsRhsHYZGBPnQw8CByJyEQW:8a14c2f9-d94b-4c72-8f5c-a62908e5b30e
{- "id": "receipt_cdGdu7mHL2DaEHHYf8PPg",
- "created_at": "2024-07-30T00:26:55.87Z",
- "updated_at": "2024-07-30T00:26:55.87Z",
- "amount": 22300,
- "currency": "USD",
- "amount_breakdown": null,
- "send_receipt_to_buyer": true,
- "device_id": null,
- "entity_details": {
- "id": "TRraKDGt53y1XeTbeCkXYMkn",
- "created_at": "2024-07-30T00:22:25.28Z",
- "type": "TRANSFER"
}, - "type": "BUYER",
- "items": [ ],
- "merchant_details": {
- "id": "MUeDVrf2ahuKc9Eg5TeZugvs",
- "business_name": "Dunder Mifflin",
- "doing_business_as": "Dunder Mifflin",
- "business_address": {
- "city": "San Mateo",
- "country": "USA",
- "line1": "741 Douglass St",
- "line2": "Apartment 8",
- "postal_code": "94114",
- "region": "CA"
}
}, - "payment_instrument_details": {
- "id": "PIe2YvpcjvoVJ6PzoRPBK137",
- "type": "PAYMENT_CARD",
- "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": "Amy White"
}, - "network_details": null,
- "requested_delivery_methods": [
- {
- "type": "EMAIL",
- "destinations": [
- "johndoe@gmail.com"
]
}, - {
- "type": "SMS",
- "destinations": [
- "3346497818"
]
}, - {
- "type": "PRINT",
- "destinations": [
- "DV12343234"
]
}
], - "_links": {
}
}
Create a Delivery Attempt
on an existing Receipt
resource.
Finix-Version | string Default: 2018-01-01 Specify the API version of your request. For more details, see Versioning Example: 2022-02-01 |
required | Array of objects A list of delivery methods used to send the receipt. |
Accepted for processing
Authentication information is missing or invalid
Forbidden
Object does not exist
Invalid field
curl -i -X POST \ -u USsRhsHYZGBPnQw8CByJyEQW:8a14c2f9-d94b-4c72-8f5c-a62908e5b30e \ 'https://finix.sandbox-payments-api.com/receipts/receipt_cdGdu7mHL2DaEHHYf8PPg/delivery_attempts' \ -H 'Content-Type: application/json' \ -H 'Finix-Version: 2022-02-01' \ -d '{ "requested_delivery_methods": [ { "type": "EMAIL", "destinations": [ "benroundtree@gmail.com" ] }, { "type": "SMS", "destinations": [ "8005550175" ] }, { "type": "PRINT", "destinations": [ "DVsEanpBtsAVvCHbNXkFaH6f" ] } ] }'
{ }
Whenever a receipt is sent, a Delivery Attempt
resource is created. Use this endpoint to retrieve a list of delivery attempts for a specific Receipt
.
Finix-Version | string Default: 2018-01-01 Specify the API version of your request. For more details, see Versioning. Example: 2022-02-01 |
List of Delivery Attempt
objects.
Authentication information is missing or invalid
Forbidden
Object does not exist
Invalid field
curl "https://finix.sandbox-payments-api.com/receipts/receipt_cdGdu7mHL2DaEHHYf8PPg/delivery_attempts" \ -H "Finix-Version: 2022-02-01" \ -u USsRhsHYZGBPnQw8CByJyEQW:8a14c2f9-d94b-4c72-8f5c-a62908e5b30e
{- "_embedded": {
- "delivery_attempts": [
- {
- "id": "delivery_attempt_cdGdueuAcxs62QBXzURdx",
- "created_at": "2024-07-30T00:26:57.54Z",
- "updated_at": "2024-07-30T00:26:57.54Z",
- "destination": "DV12343234",
- "receipt_id": "receipt_cdGdu7mHL2DaEHHYf8PPg",
- "state": "FAILED",
- "type": "PRINT"
}, - {
- "id": "delivery_attempt_cdGduaphbiUkMLjUPwUMu",
- "created_at": "2024-07-30T00:26:56.58Z",
- "updated_at": "2024-07-30T00:26:56.58Z",
- "destination": "3346497818",
- "receipt_id": "receipt_cdGdu7mHL2DaEHHYf8PPg",
- "state": "SUCCEEDED",
- "type": "SMS"
}, - {
- "id": "delivery_attempt_cdGdu8Jjep34tRvietyok",
- "created_at": "2024-07-30T00:26:56.19Z",
- "updated_at": "2024-07-30T00:26:56.19Z",
- "destination": "johndoe@gmail.com",
- "receipt_id": "receipt_cdGdu7mHL2DaEHHYf8PPg",
- "state": "SUCCEEDED",
- "type": "EMAIL"
}
]
}, - "page": {
- "limit": 100,
- "next_cursor": "delivery_attempt_cdGdu8Jjep34tRvietyok"
}
}