Record the marketplace receipt for a charge (internal producers)

Internal. After billing the charge's outcome dimension on Microsoft or AWS Marketplace, the producer records the one receipt (decionis.outcomes.receipt/1). The identical receipt again answers 200; any other receipt for the same charge is 409 charge_already_billed, so a charge is never billed twice.

post/v1/outcomes/charges/{chargeId}/receipts

Request

  • Base URL: https://api.decionis.com
  • URL: https://api.decionis.com/v1/outcomes/charges/{chargeId}/receipts
  • Auth: HTTP bearer

Request body

version'decionis.outcomes.receipt/1' required
platform'microsoft' | 'aws' required
subscription_idstring required
plan_idstring required
dimensionstring required
quantitynumber required
unit_minorinteger required
status'ACCEPTED' | 'DUPLICATE' | 'NOTHING_TO_BILL' required
usage_referencestring nullable required
reported_atstring date-time required

Response

The identical receipt was already recorded.

version'decionis.outcomes.receipt/1' required
platform'microsoft' | 'aws' required
subscription_idstring required
plan_idstring required
dimensionstring required
quantitynumber required
unit_minorinteger required
status'ACCEPTED' | 'DUPLICATE' | 'NOTHING_TO_BILL' required
usage_referencestring nullable required
reported_atstring date-time required

Changes

No recorded changes to this operation across all 1 revision of this API.