POST
/
api
/
credits
/
{credit_id}
/
void
/
curl --request POST \
  --url https://api.uselotus.io/api/credits/{credit_id}/void/ \
  --header 'Authorization: <api-key>'
{
  "amount": 123,
  "amount_paid": 123,
  "amount_paid_currency": {
    "code": "<string>",
    "name": "<string>",
    "symbol": "<string>"
  },
  "amount_remaining": 123,
  "credit_id": "<string>",
  "currency": {
    "code": "<string>",
    "name": "<string>",
    "symbol": "<string>"
  },
  "customer": {
    "customer_id": "<string>",
    "customer_name": "<string>",
    "email": "jsmith@example.com"
  },
  "description": "<string>",
  "drawdowns": [
    {
      "amount": 123,
      "applied_at": "2023-11-07T05:31:56Z",
      "credit_id": "<string>",
      "description": "<string>"
    }
  ],
  "effective_at": "2023-11-07T05:31:56Z",
  "expires_at": "2023-11-07T05:31:56Z",
  "status": "active"
}

Immediately voids a credit. If the credit is already expired or has already been consumed, nothing will happen.

lotus.void_credit(credit_id='credit_0569173ee6654369')

Authorizations

Authorization
string
headerrequired

Token-based authentication with required prefix "Token"

Path Parameters

credit_id
string
required

The ID of the credit to retrieve or update.

Response

200 - application/json
amount
number
required
amount_paid
number
required
amount_paid_currency
object
required
amount_remaining
number
required
credit_id
string
required
currency
object
required
customer
object
required
description
string | null
required
drawdowns
object[]
required
effective_at
string
required
expires_at
string | null
required
status
enum<string>
required
  • active - Active
  • inactive - Inactive
Available options:
active,
inactive