file-invoice-dollarInvoices

Invoice API Methods and Refference

Parameters

Invoice ID

Id is unique identifier that represents Invoice object for quering details of specific invoice

Parent ID

Parent id points to relative invoice that was parent in the chain of invoices. Sometimes we need to make several tranches, thats how we can bind several invoices into chain.

Client ID

Client id is a identifier of your customer. Its represents a unique UUID v4 that pointers to specific user or customer to whom you direct your invoice. If you have account managment system, you may input user's id in your DB as client_id to easy bind your user's payments separate from others.

Total

Amount of funds needed to complete invoice. It's depends on choosen currency in invoice body while creating, to calculate current rates and amount that left to pay.

Represents amount of funds to current invoice currency that was already submited as paid in one or several transactions.

Type

Type of invoice. For now we support "payment" only.

Status

Status of the invoice represents it's current stage. It may be ACTIVE / SUCCESS / CANCELED.

circle-info

You cannot cancel invoices with SUCCESS statuses.

Created At

Represents timestamp when invoice was created.

Updated At

Represents timestamp of new transactions appears in the Invoice or invoice status changes.

Products

See products API section

Payload

See payload section

API Refference

Get Invoices List

get

Retrieves a list of all invoices associated with the authenticated merchant. Results are paginated and can be filtered by status.

Query parameters
vinteger · enumRequired

API version, must be 2

Possible values:
Responses
chevron-right
200

List of invoices successfully retrieved

application/json

Represents a payment invoice in the system

idstring · uuidOptional

Unique identifier of the invoice

parent_idstring · uuid · nullableOptional

ID of the parent invoice if this is a child invoice

client_idstring · uuidOptional

ID of the client who needs to pay this invoice

totalstring · decimalOptional

Total amount to be paid in the specified currency

paidstring · decimalOptional

Amount that has been paid so far

typestring · enumOptional

Type of the invoice, currently only 'payment' is supported

Possible values:
statusstring · enumOptional

Current status of the invoice:

  • active - waiting for payment
  • success - fully paid
  • canceled - payment cancelled
Possible values:
payloadobject · nullableOptional

Additional custom data associated with the invoice

created_atstring · date-timeOptional

Timestamp when the invoice was created

updated_atstring · date-timeOptional

Timestamp of the last invoice update

get
/invoice

Create Invoice

post

Creates a new invoice for specified amount and currency. The invoice can be associated with specific products.

Authorizations
AuthorizationstringRequired

Authorization token must be included in the Authorization header. Example: Authorization: Bearer YOUR_TOKEN app_secret from API Keys section

Query parameters
vinteger · enumRequired

API version, must be 2

Possible values:
Body
app_idstring · uuidRequired

ID of the merchant application

typestring · enumOptional

Type of invoice, currently only 'payment' is supported

Possible values:
client_idstring · uuidRequired

ID of the client who needs to pay

currencystringRequired

Three-letter currency code (e.g., USD)

totalnumberRequired

Total amount to be paid

Responses
post
/invoice

Get Invoice Details

get

Retrieves detailed information about a specific invoice

Path parameters
idstring · uuidRequired

Invoice ID

Query parameters
vinteger · enumRequired

API version, must be 2

Possible values:
Responses
chevron-right
200

Invoice details successfully retrieved

application/json

Represents a payment invoice in the system

idstring · uuidOptional

Unique identifier of the invoice

parent_idstring · uuid · nullableOptional

ID of the parent invoice if this is a child invoice

client_idstring · uuidOptional

ID of the client who needs to pay this invoice

totalstring · decimalOptional

Total amount to be paid in the specified currency

paidstring · decimalOptional

Amount that has been paid so far

typestring · enumOptional

Type of the invoice, currently only 'payment' is supported

Possible values:
statusstring · enumOptional

Current status of the invoice:

  • active - waiting for payment
  • success - fully paid
  • canceled - payment cancelled
Possible values:
payloadobject · nullableOptional

Additional custom data associated with the invoice

created_atstring · date-timeOptional

Timestamp when the invoice was created

updated_atstring · date-timeOptional

Timestamp of the last invoice update

get
/invoice/{id}

Cancel Invoice

delete

Cancels an active invoice. Cancelled invoices cannot receive payments. Only active invoices can be cancelled.

Authorizations
AuthorizationstringRequired

Authorization token must be included in the Authorization header. Example: Authorization: Bearer YOUR_TOKEN app_secret from API Keys section

Path parameters
idstring · uuidRequired

Invoice ID to cancel

Query parameters
vinteger · enumRequired

API version, must be 2

Possible values:
Responses
chevron-right
200

Invoice successfully cancelled

application/json

Represents a payment invoice in the system

idstring · uuidOptional

Unique identifier of the invoice

parent_idstring · uuid · nullableOptional

ID of the parent invoice if this is a child invoice

client_idstring · uuidOptional

ID of the client who needs to pay this invoice

totalstring · decimalOptional

Total amount to be paid in the specified currency

paidstring · decimalOptional

Amount that has been paid so far

typestring · enumOptional

Type of the invoice, currently only 'payment' is supported

Possible values:
statusstring · enumOptional

Current status of the invoice:

  • active - waiting for payment
  • success - fully paid
  • canceled - payment cancelled
Possible values:
payloadobject · nullableOptional

Additional custom data associated with the invoice

created_atstring · date-timeOptional

Timestamp when the invoice was created

updated_atstring · date-timeOptional

Timestamp of the last invoice update

delete
/invoice/{id}

Last updated