Skip to main content
POST
cURL

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Invoice to add to the system.

_id
string
required

Invoice ID in their system

Example:

"507f1f77bcf86cd799439011"

expiryDate
integer
required

The expiry date of the invoice(unix timestamp in milliseconds)

Example:

"1672531200"

invoiceUrl
string<uri>
required

URL to access the invoice

Example:

"https://example.com/invoices/12345"

subscriptionId
string
required

Subscription ID in our system

Example:

"sub_abc123"

paidAt
integer
required

The expiry date of the invoice(unix timestamp in milliseconds)

Example:

"1672531200"

Response

Resource fetched successfully

success
boolean
Example:

true

message
string
Example:

"Invoice created successfully"