Skip to main content
POST
Save Invoice Draft

Authorizations

Authorization
string
header
required

HMAC-SHA256 signature. See the Authorization-Signature header parameter on signed operations.

Headers

Authorization-Signature
string
required

HMAC-SHA256 signature header: 'APIKey=<api_key>,signature=,timestamp=<unix_timestamp>'. The signature is computed over METHOD + path (with the /v3 prefix stripped) + timestamp.

Body

application/json

Draft blocks are stored verbatim; partial content is allowed.

from
object
Example:
id
string

Existing draft to update; omit to create.

invoice
object
Example:
items
object[]
recipient
object
Example:

Response

Draft saved

archived_at
string<date-time> | null
created_at
string<date-time>
data
object

Invoice details as provided on create.

id
string
Example:

"cuidjkhg3e289y74u5t6v"

order_id
string

Latest linked pay order id.

orders
object[]
organization_id
string
Example:

"org_123"

payment_url
string
Example:

"https://pay.coinvoyage.io/invoices/cuidjkhg3e289y74u5t6v"

published_at
string<date-time> | null
updated_at
string<date-time>