Create a value receipt

Creates a value receipt for a customer and date range, optionally scoped to a product or an order. Every call creates a receipt, so calling twice for the same period gives the customer two. The date range must have ended; a range with nothing delivered in it reports zero. Returns the receipt’s ID and public URL.

Authentication

AuthorizationBearer
API Key authentication using Bearer token

Request

Body
startDatedatetimeRequired
endDatedatetimeRequired
customerIdstringOptional>=1 character
Mutually exclusive with externalCustomerId. Exactly one is required.
externalCustomerIdstringOptional>=1 character
Mutually exclusive with customerId. Exactly one is required.
productobjectOptional
Mutually exclusive with orderId. Provide at most one.
orderIdstringOptional>=1 character
Mutually exclusive with product. Provide at most one.

Response

201
idstring
statusstring
publicUrlTokenstring
publicUrlstringformat: "uri"
generatedAtdatetime or nullOptional

Errors

400
Bad Request Error
403
Forbidden Error
404
Not Found Error
500
Internal Server Error