Create and Update Invoice

/api/v1_1/invoice/

post
Invoice

https://{domain}.customersuccessbox.com/api/v1_1/invoice/
POST Invoice allow you to create or update an invoice
Request
Response
Request
Headers
Authorization
required
string
Bearer {api_key}
Content-Type
required
string
application/json
Body Parameters
invoice_id
required
string
Unique identifier for Invoice
subscription_id
required
string
Unique identifier for subscription
account_id
optional
string
Unique identifier for account. Set this only if invoice can't be attributed to a subscription
Response
200: OK
{
"success": true
}

Body example

Refer to available fields in Invoice Resource for attributes that can be set and updated for an invoice using this call.

Only those fields are allowed which aren't marked as Read-only.

{
"invoice_id": "inv-dgs3344",
"subscription_id": "sub-dsg3344"
}

CURL request example

curl --location --request POST "https://{domain}.customersuccessbox.com/api/v1_1/subscription" \
--header "Authorization: Bearer {api_key}" \
--header "Content-Type: application/json" \
--data "{
\"invoice_id\": \"inv-dgs3344\",
\"subscription_id\": \"sub-dsg3344\",
}"