v1

latestOpenAPI 3.0.12026-07-2412502.6 MB
Customers

Add Credit

Add Credit

post/customers/{customer_id}/credits

Request body

credit_totalstring required

The credit total.

auto_applyboolean

Indicates if the credit is automatically applied.

date_expirestring date

The expiry date of the credit.

Response

OK

customer_balancestring

Example response

{
  "balance_history": [
    {
      "date_expire": "2023-04-01 00:00:00",
      "date_created": "2023-04-01 00:00:00",
      "date_modified": "2023-04-01 00:00:00"
    }
  ]
}