Skip to main content
POST
/
revenue
/
adjustments
Create an adjustment
curl --request POST \
  --url https://api.billing.io/v1/revenue/adjustments \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "amount": 1.01,
  "currency": "USD",
  "reason": "<string>",
  "checkout_id": "<string>",
  "subscription_id": "<string>",
  "customer_id": "<string>"
}
'
{
  "id": "adj_1a2b3c4d5e",
  "org_id": "<string>",
  "revenue_event_id": "<string>",
  "amount": 123,
  "currency": "<string>",
  "reason": "<string>",
  "customer_id": "<string>",
  "checkout_id": "<string>",
  "subscription_id": "<string>",
  "applied_by": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z"
}
Create a revenue adjustment (credit, debit, or chargeback).
curl -X POST https://api.billing.io/v1/revenue/adjustments \
  -H "Authorization: Bearer $BILLING_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "type": "credit",
    "amount": 25.00,
    "currency": "USD",
    "reason": "Goodwill credit for service disruption",
    "customer_id": "cus_a1b2c3d4e5f6"
  }'
Response
{
  "id": "adj_a1b2c3d4e5f6a7b8c9d0e1f2",
  "type": "credit",
  "amount": 25.00,
  "currency": "USD",
  "reason": "Goodwill credit for service disruption",
  "customer_id": "cus_a1b2c3d4e5f6",
  "created_at": "2025-01-15T12:00:00Z"
}

Authorizations

Authorization
string
header
required

Use your secret API key as a Bearer token. Keys are prefixed: sk_live_ (production) or sk_test_ (sandbox).

Body

application/json
type
enum<string>
required
  • credit — Positive adjustment (e.g., refund to customer)
  • debit — Negative adjustment
  • chargeback — Disputed payment reversal
Available options:
credit,
debit,
chargeback
amount
number<double>
required

Adjustment amount

Required range: x >= 0.01
currency
string
required

Currency code

Example:

"USD"

reason
string
required

Reason for the adjustment

Maximum string length: 1024
checkout_id
string | null

Related checkout identifier

subscription_id
string | null

Related subscription identifier

customer_id
string | null

Related customer identifier

Response

Adjustment created

id
string

Unique identifier (prefixed adj_)

Example:

"adj_1a2b3c4d5e"

org_id
string

Organization identifier

revenue_event_id
string | null

Associated revenue event identifier

type
enum<string>
  • credit — Positive adjustment (e.g., refund to customer)
  • debit — Negative adjustment
  • chargeback — Disputed payment reversal
Available options:
credit,
debit,
chargeback
amount
number<double>
currency
string
reason
string

Reason for the adjustment

customer_id
string | null
checkout_id
string | null
subscription_id
string | null
applied_by
string | null

User who applied the adjustment

environment
enum<string>
Available options:
live,
sandbox
created_at
string<date-time>
updated_at
string<date-time>