Invoices
Use the endpoints below to create work with invoices as a partner on behalf of the companies you integrate with. The request should be signed with your Partner API Secret value.
For more information:
See the statuses that can be assigned to an invoice.
See the full example with signature creation.
See the list of supported tokens for the amount value.
Create an invoice for a partner company
POST
<api>/integration/partner/invoices
Creates a new invoice for a specific amount, token, and company.
Headers
Name | Type | Description |
---|---|---|
x-api-key* | string | API Key |
x-api-sig* | string | Signature created using API Secret |
x-api-ts* | string | Timestamp of the request |
Request Body
Name | Type | Description |
---|---|---|
metadata | string | Custom metadata for invoice |
amount* | string | Amount in tokens, e.g "100.12 btBUSD" |
expiresAt* | string | Date/time when invoice expires (in ISO 8601 format) |
companyId* | string | Id of the partner's company |
You can get invoice details and status using the method below.
Get invoice
GET
<api>/integration/partner/invoices/<id>
Returns the invoice details by id.
Path Parameters
Name | Type | Description |
---|---|---|
id* | string | Invoice Id (uuid) |
Last updated