Grant monetary credit in one currency. Credit is applied FIFO before tax to eligible recurring invoices.
Grant monetary credit in one currency. Credit is applied FIFO before tax to eligible recurring invoices.
ApiKeyAuth In: header
Unique key used to safely retry this write for 24 hours without applying it twice.
1 <= length <= 200application/json
TypeScript Definitions
Use the request body type in TypeScript.
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/customers/string/credits" \ -H "Content-Type: application/json" \ -d '{ "amount": 1, "currency": "usd", "reason": "string" }'{ "id": "string", "amount": -9007199254740991, "appliedAmount": -9007199254740991, "reversedAmount": -9007199254740991, "revokedAmount": -9007199254740991, "remainingAmount": -9007199254740991, "currency": "string", "reason": "string", "source": "dashboard", "expiresAt": "2019-08-24T14:15:22Z", "createdAt": "2019-08-24T14:15:22Z", "object": "customer_credit", "livemode": true}{ "error": { "type": "string", "code": "string", "message": "string", "param": "string", "details": null, "doc_url": "string" }}{ "error": { "type": "string", "code": "string", "message": "string", "param": "string", "details": null, "doc_url": "string" }}{ "error": { "type": "string", "code": "string", "message": "string", "param": "string", "details": null, "doc_url": "string" }}{ "error": { "type": "string", "code": "string", "message": "string", "param": "string", "details": null, "doc_url": "string" }}{ "error": { "type": "string", "code": "string", "message": "string", "param": "string", "details": null, "doc_url": "string" }}{ "error": { "type": "string", "code": "string", "message": "string", "param": "string", "details": null, "doc_url": "string" }}{ "error": { "type": "string", "code": "string", "message": "string", "param": "string", "details": null, "doc_url": "string" }}{ "error": { "type": "string", "code": "string", "message": "string", "param": "string", "details": null, "doc_url": "string" }}Amount in the currency's smallest unit.
0 < value <= 9007199254740991Value in
1 <= length <= 500