POST
/
payments
/
settings
/
invoices
curl --request POST \
  --url https://eu.sequencehq.com/api/payments/settings/invoices \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --data '{
  "invoiceId": "bc61d4b8-e9d6-4f4a-9bcf-f5dae874c730",
  "customerId": "bc61d4b8-e9d6-4f4a-9bcf-f5dae874c730",
  "paymentProvider": "STRIPE"
}'
{
  "id": "bc61d4b8-e9d6-4f4a-9bcf-f5dae874c730",
  "sequenceAccountId": "bc61d4b8-e9d6-4f4a-9bcf-f5dae874c730",
  "invoiceId": "bc61d4b8-e9d6-4f4a-9bcf-f5dae874c730",
  "customerId": "bc61d4b8-e9d6-4f4a-9bcf-f5dae874c730",
  "paymentProvider": "STRIPE"
}

Headers

Authorization
string
required

Your API credentials. Eg. Basic {credentials}.

Sequence-Version
enum<string>

Use this header to select an API version

Available options:
2024-07-30

Body

application/json
invoiceId
string
required

Invoice ID.

Example:

"bc61d4b8-e9d6-4f4a-9bcf-f5dae874c730"

paymentProvider
enum<string>
required

Sequence Account ID.

Available options:
STRIPE,
NONE
Example:

"STRIPE"

customerId
string

Customer ID.

Example:

"bc61d4b8-e9d6-4f4a-9bcf-f5dae874c730"

Response

201
application/json
Created
id
string
required

Unique payment provider id.

Example:

"bc61d4b8-e9d6-4f4a-9bcf-f5dae874c730"

sequenceAccountId
string
required

Sequence Account ID.

Example:

"bc61d4b8-e9d6-4f4a-9bcf-f5dae874c730"

invoiceId
string
required

Invoice ID.

Example:

"bc61d4b8-e9d6-4f4a-9bcf-f5dae874c730"

customerId
string
required

Customer ID.

Example:

"bc61d4b8-e9d6-4f4a-9bcf-f5dae874c730"

paymentProvider
enum<string>
required

Sequence Account ID.

Available options:
STRIPE,
NONE
Example:

"STRIPE"