Reseller

Create Invoice (SellAuth Reseller API): paid from your balance, delivered in the response; send Idempotency-Key to retry safely

POST
/formats/sellauth/v1/reseller/invoices

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

curl -X POST "https://example.com/formats/sellauth/v1/reseller/invoices" \  -H "Content-Type: application/json" \  -d '{    "items": [      {        "product_id": "string",        "variant_id": "string"      }    ]  }'
{  "id": -9007199254740991,  "unique_id": "string",  "status": "string",  "fulfillment_status": "string",  "currency": "string",  "total": 0,  "total_usd": 0,  "source": "api",  "url": "string",  "created_at": "string",  "completed_at": "string",  "items": [    {      "product_id": -9007199254740991,      "product_name": "string",      "variant_id": -9007199254740991,      "variant_name": "string",      "quantity": -9007199254740991,      "status": "string",      "total_price": 0,      "total_price_usd": 0,      "reseller_discount": 0,      "delivered": [        "string"      ]    }  ]}