Invoice a subscription now
POST/api/v3/package/:package_id/_action/invoice
The default behavior when creating a recurring package via the ChargeOver REST API is to generate the first invoice on the following day.
You can trigger the immediate generation of an invoice by calling this method. By default, the invoice created will be dated with today's date.
You can also immediately generate future-dated invoices by specifying a
date
attribute in YYYY-MM-DD
format. There is
also one special date, the string NEXT_SCHEDULED_INVOICE
,
which will generate an invoice dated with the date of the next normally
scheduled invoice.
Request
- application/json
Body
_comment1 string
_comment2 string
date string
Responses
- 200
- 400
- 401
Action completed successfully
- application/json
- Schema
- Example (from schema)
- Example 1
Schema
code integer
status string
message stringnullable
details objectnullable
response boolean
{
"code": 0,
"status": "string",
"message": "string",
"details": {},
"response": true
}
{
"code": 200,
"status": "OK",
"message": "",
"details": {},
"response": true
}
Bad request
- application/json
- Schema
- Example (from schema)
- Example 1
Schema
code integer
status string
message stringnullable
details objectnullable
response boolean
{
"code": 0,
"status": "string",
"message": "string",
"details": {},
"response": true
}
{
"code": 400,
"status": "Error",
"message": "Missing or invalid parameter.",
"details": {},
"response": false
}
Authentication error
- application/json
- Schema
- Example (from schema)
- Example 1
Schema
code integer
status string
message stringnullable
details objectnullable
response boolean
{
"code": 0,
"status": "string",
"message": "string",
"details": {},
"response": true
}
{
"code": 401,
"status": "Error",
"message": "Invalid or incorrect authorization [Missing (basic) authorization header.]",
"details": {},
"response": false
}
Loading...