Invoices

postInvoices

POST
/invoices

Create an Invoice, which is used for invoicing customers, emailing the invoice to them, allowing them to pay the invoice and tracking payments with invoices.

Authorization

APIKEY<token>

In: header

Header Parameters

token?string

A single-use, limited authentication layer in addition to an API Key or Session Key to authorize sensitive operations. Auth Tokens add security by requiring one-time approval for specific actions.

request-token?string

A custom, one-time identifier for any API request (GET, PUT, POST, or DELETE). Blocks future requests with the same token for 48 hours, ensuring only the first request is processed. Valid values can contain 1-100 alphanumeric and special characters. See Request Tokens for more information.

Request Body

application/json

Create Invoice Request

Create Invoice Request

login*string

The identifier of the Login of this invoice resource.

merchant*|

The identifier of the Merchant of this invoice resource.

customer?||

The identifier of the Customer of this invoice resource.

subscription*|

The identifier of the Subscription of this invoice resource.

number*string

The invoice number.

allowedPaymentMethods?string

The methods of payment allowed for this invoice. This field accepts multiple options concatenated into a single string with a pipe (|) separator between each option.

  • Amex - American Express
  • Visa - Visa card
  • Mc - MasterCard
  • Diners - Diners Club card
  • Discover - Discover card
  • PayPal - PayPal payment method
  • Debit - Debit card
  • Checking - Checking account
  • Savings - Savings account
  • CorpChecking - Corporate checking account
  • CorpSavings - Corporate savings account
  • Gift - Gift card
  • EBT - Electronic Benefits Transfer
  • WIC - Women, Infants, and Children program
  • Accel - Accel network
  • ATH - ATH network
  • AFFN - Armed Forces Financial Network
  • Culiance - Culiance network
  • Interlink - Interlink network
  • Jeanie - Jeanie network
  • Maestro - Maestro card
  • NYCE - NYCE network
  • Pulse - Pulse network
  • Shazam - Shazam network
  • Star - Star network
  • Interac - Interac network
  • Omnitoken - Omnitoken
title?string

The title of the invoice.

message?string

The message that will be sent with the invoice.

total?integer

The total amount for this invoice.

Default0
tax?|

The tax amount for this invoice.

discount?|

The discount amount applied to this invoice.

dueDate?|

The date the invoice is due.

expirationDate?|

The date the invoice is due.

sendOn?|

The date to send this invoice.

status*invoiceStatus

The current status of the transaction.

Value in

  • "pending"
  • "cancelled"
  • "expired"
  • "viewed"
  • "paid"
  • "confirmed"
  • "refunded"
  • "rejected"
emailStatus?invoicesEmailStatus

The current status of the invoice.

  • send - Updated email status to indicate the invoice is ready to be sent to the customer.
  • sent - Updated email status once the invoice is sent to the customer.
  • pending - Updated email status pending

Value in

  • "send"
  • "sent"
  • "pending"
emails?|

The email addresses to send the invoice to.

type?invoiceType

The type of invoice.

  • single - A single-use invoice.
  • multiUse - A static, reusable invoice. (Payment Page.)
  • recurring - A subscription-based invoice.

Value in

  • "single"
  • "multiUse"
  • "recurring"
frozen?frozen

Whether this resource is marked as frozen.

  • 0 - Not Frozen
  • 1 - Frozen

Value in

  • 0
  • 1
inactive?inactive

Whether this resource is marked as inactive.

  • 0 - Active
  • 1 - Inactive

Value in

  • 0
  • 1
invoiceLineItems?array<>

Response Body

application/json

application/json

curl -X POST "https://example.com/invoices" \  -H "Content-Type: application/json" \  -d '{    "login": "t1_log_0092b50e1112b18e41d521e",    "merchant": "t1_mer_008e7f511d5c5a2d2fade82",    "customer": "t1_cus_00b39e97b2110ba9075dfda",    "subscription": "t1_sbn_00fc6fxx7a871bbce685897",    "title": "Test Invoice Alert",    "number": "9999888888",    "message": "Testing invoice alerts",    "emails": "erik@test.com",    "total": 100,    "tax": 1000,    "discount": 1000,    "type": "single",    "status": "paid",    "dueDate": 20250217,    "expirationDate": 20250217,    "sendOn": 20250217,    "emailStatus": "pending",    "inactive": 0,    "frozen": 0,    "allowedPaymentMethods": "visa"  }'
{  "response": {    "data": [      {        "id": "t1_act_67a18bcde1a1b2ec3d9c9az",        "created": "2025-01-31 08:42:16.7318",        "modified": "2025-01-31 08:42:16.7318",        "creator": "t1_log_0092b50e8812b18e41d511s",        "modifier": "t1_log_0092b50e8812b18e41d511s",        "login": "t1_log_0092b50e1112b18e41d521e",        "merchant": "t1_mer_008e7f511d5c5a2d2fade82",        "customer": "t1_cus_00b39e97b2110ba9075dfda",        "subscription": "t1_sbn_00fc6fxx7a871bbce685897",        "number": "10",        "title": "Test Invoice Alert",        "message": "Testing the invoice alerts",        "emails": "erik@test.com",        "total": 100,        "tax": 1000,        "discount": 1000,        "type": "single",        "status": "paid",        "dueDate": 20250217,        "expirationDate": 20250217,        "sendOn": 20250217,        "emailStatus": "pending",        "inactive": 0,        "frozen": 0,        "allowedPaymentMethods": "visa"      }    ],    "details": {      "requestId": 1,      "totals": [],      "page": {        "current": 1,        "last": 1,        "hasMore": false      }    },    "errors": []  }}