Invoices

putInvoicesId

PUT
/invoices/{id}

Update an Invoice. An Invoice resource is used for invoicing customers, email the invoice to them, allow them to pay the invoice and track payments with invoices.

Authorization

APIKEY<token>

In: header

Path Parameters

id*string

The ID of this invoice.

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

Update Invoice Request

Update Invoice Request

login?string

The identifier of the Login of this invoice resource.

merchant?string

The identifier of the Merchant of this invoice resource.

customer?string

The identifier of the Customer of this invoice resource.

subscription?string

The identifier of the Subscription of this invoice resource.

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.

tax?integer

The tax amount for this invoice.

discount?integer

The discount amount applied to this invoice.

dueDate?integer

The date the invoice is due.

expirationDate?integer

The date the invoice is due.

sendOn?integer

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?string

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"
inactive?inactive

Whether this resource is marked as inactive.

  • 0 - Active
  • 1 - Inactive

Value in

  • 0
  • 1
frozen?frozen

Whether this resource is marked as frozen.

  • 0 - Not Frozen
  • 1 - Frozen

Value in

  • 0
  • 1

Response Body

application/json

application/json

curl -X PUT "https://example.com/invoices/t1_inv_00b3a1f7e418cd6e378d410" \  -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",    "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"  }'
{  "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": []  }}