Delete a promotion
Stops the offer and frees its coupon code. Sales made on it keep the price they were made at. To end an offer early without losing the record of it, move its endsAt instead.
apiKeyAuthorizationBearer <token>An API key from the Developers page. rhq_test_ keys reach the sandbox, rhq_live_ keys the live side.
id*stringDeleted
curl -X DELETE "https://example.com/v1/promotions/prm_01K6XJ4Q8ZT3M9R5V2B7WDHNCA"Update a promotion PATCH
Send only what changes. Purchases already made keep the price they were made at, and the uses already claimed stay claimed.
Create an invoice POST
Bills a customer for sales not yet on an invoice: every one of them, or the ones you name. Each line is a copy of a sale at the price it was made at. An invoice is in one currency and holds at most 500 sales, oldest first. ResellerHQ does not collect payment from your customers: you take the money however you already do, and record it here. Send an Idempotency-Key header so a retry can never invoice twice.