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
startDate
endDate
customerId
Mutually exclusive with externalCustomerId. Exactly one is required.
externalCustomerId
Mutually exclusive with customerId. Exactly one is required.
product
Mutually exclusive with orderId. Provide at most one.
orderId
Mutually exclusive with product. Provide at most one.
Response
201
id
status
publicUrlToken
publicUrl
generatedAt
Errors
400
Bad Request Error
403
Forbidden Error
404
Not Found Error
500
Internal Server Error