Skip to main content
POST
Create an invoice

Authorizations

X-API-Key
string
header
required

Headers

Idempotency-Key
string

Body

application/json
amount
string
required
Pattern: ^\d+(\.\d{1,2})?$
lineItems
object[]
required
Required array length: 1 - 500 elements
sellerExternalId
string
required
Required string length: 1 - 200
buyerExternalId
string
Required string length: 1 - 200
buyerEmail
string<email>
buyerName
string
Required string length: 1 - 200
buyerCountry
string
Required string length: 2
currency
string
default:USD
Required string length: 3
dueDate
string<date-time>
expiresAt
string<date-time>
buyerRef
string
Maximum string length: 200
dueNumber
string
Pattern: ^\d{11}$
exportContractRef
string
Maximum string length: 200
incoterm
enum<string>
Available options:
FOB,
CIF,
FCA,
CFR,
EXW,
DAP,
DDP
portOfLoading
string
Maximum string length: 64

Response

Invoice created

id
string
required
publicId
string
required
orgId
string
required
buyerId
string
required
sellerConnectedAccountId
string
required
sellerExternalId
string | null
required
sellerName
string | null
required
status
enum<string>
required
Available options:
draft,
awaiting_approval,
approved,
awaiting_buyer,
buyer_kyc_pending,
buyer_kyc_approved,
buyer_kyc_rejected,
fx_quoted,
fx_expired,
on_ramp_pending,
on_ramp_failed,
fiat_received,
on_chain_confirmed,
offramp_pending,
offramp_failed,
settled,
partial_payment,
expired,
cancelled,
restored,
manual_review
currency
string
required
amount
string
required
requestNetworkId
string | null
required
paymentChain
string | null
required
paymentAddress
string | null
required
dueDate
string | null
required
expiresAt
string | null
required
cancelReason
string | null
required
pendingApproval
boolean
required
buyerRef
string | null
required
dueNumber
string | null
required
exportContractRef
string | null
required
incoterm
string | null
required
portOfLoading
string | null
required
feeBps
integer | null
required
feeAmount
string | null
required
brlSettledAmount
string | null
required
fxRateAtSettlement
string | null
required
createdAt
string
required
updatedAt
string
required
timeline
object[]
required
buyerEmail
string<email>
buyerName
string | null
lineItems
object[]