POST Invoice

Submit a PO-backed invoice to a buyer organization through the Coupa Supplier Portal (CSP) REST API.

Endpoint

Endpoint

/api/v1/invoices

Method

POST

Scope

csp.invoices.write

Rate Limit

100 requests per minute per OAuth client. 5000 invoice create requests per supplier per UTC day.

Headers

HeaderArgument

Authorization

Bearer token

Content-Type

application/json

Parameters

The request body must be a JSON object with a top-level invoice key.

Note:

Required column legend:

  • R — Always required
  • CR — Conditionally required
  • O — Optional

Maximum payload: 256 KB. Maximum lines per invoice: 100.

Table 1. Invoice parameters
ParameterRequiredDescription

invoice_number

R

Unique invoice identifier assigned by the supplier. Maximum 40 characters. Must be unique per supplier per buyer. Duplicate invoice numbers for non-draft invoices are rejected.

invoice_date

R

Invoice issue date. Must be a valid date within 20 years of today. Format: YYYY-MM-DDTHH:mm:ssZ.

po_id

R

ID of the purchase order this invoice is billed against. The PO must exist and be in issued or acknowledged status and be linked to the authenticated supplier. You can find PO UUIDs from your received purchase orders in the CSP.

currency

R

Three-letter ISO 4217 currency code (for example, USD, EUR, GBP, INR). Must be recognized by the buyer's system.

invoice_lines

R

Array of invoice line objects. At least one line is required; maximum 100 lines. See the Invoice line parameters table below.

line_level_taxation

O

Whether tax is calculated per line (true) or at header level (false). Defaults to false. Set to true when providing tax_lines on individual lines.

payment_term_code

CR

Payment term code. Maximum 50 characters. Defaults from the PO or supplier configuration if omitted. Provide only to override the default.

shipping_amount

O

Header-level shipping or freight charge. Set to 0.00 if not applicable.

handling_amount

O

Header-level handling charge. Set to 0.00 if not applicable.

misc_amount

O

Header-level miscellaneous charge. Set to 0.00 if not applicable.

exchange_rate

CR

Currency exchange rate. Required when the invoice currency differs from the buyer's accounting currency.

delivery_number

O

Delivery note or shipment tracking number. Maximum 255 characters. Informational.

delivery_date

O

Date goods or services were delivered. Informational. Format: YYYY-MM-DDTHH:mm:ssZ.

supplier_note

O

Free-text note visible to the buyer. Use for payment instructions or context.

internal_note

O

Internal note. May be visible to the buyer's AP team depending on configuration.

remit_to_address

O

Supplier's remit-to address for payment. Not required at submission, but recommended — determines the payment destination. If the supplier has exactly one remit-to address registered, it is defaulted automatically. If the supplier has multiple, provide this field to control which address is used. See the Address object table below. To find your address codes, go to your CSP Business Profile and select Legal Entities.

invoice_from_address

O

Supplier's invoicing or legal-entity address. Not auto-defaulted. If not provided, it remains blank. Provide this field when required for compliance in EU VAT or India GST jurisdictions. See the Address object table below.

ship_from_address

O

Supplier's ship-from address. Not auto-defaulted. If not provided, it remains blank. Provide this field when required for compliance in applicable e-invoicing jurisdictions. See the Address object table below.

Table 2. Address parameters
Lookup modeExampleDescription

integration_code

{ "integration_code": "REMIT-001" }

Address integration code as registered in CSP. To find your address codes, go to your CSP Business Profile and select Legal Entities. Validated for the correct purpose flag and active status before the invoice is forwarded to the buyer system.

Table 3. Invoice line parameters
ParameterRequiredDescription

line_num

R

Unique line number within the invoice. Must be a positive integer, sequential starting from 1.

description

R

Description of the item or service. Maximum 255 characters.

price

R

Unit price for quantity lines, or total line amount for service or amount lines. Must be non-negative.

quantity

CR

Number of units. Required for physical goods lines; omit for service or amount lines. Must be positive when provided. Determines line type: when present, creates an InvoiceQuantityLine (also requires uom); when absent, creates an InvoiceAmountLine.

uom

CR

Unit of measure code. Required for quantity lines. Common values: EA, HR, DA, MO, BX, KG, LB.

currency

O

Line-level currency override. Inherits from the header currency if omitted.

order_line_id

R

ID of the buyer's PO line. Required on every invoice line. Enables 3-way matching (invoice → PO → receipt) and quantity and price tolerance checks.

account_code

CR

Chart of accounts code for cost allocation. Maximum 255 characters. Defaults from the PO line or contract. Provide if known to avoid lookup failures when chart-of-accounts validation is enabled.

supplier_part_id

O

Supplier's internal part number or SKU. Maximum 255 characters. Informational.

commodity_name

O

Commodity or category name. Maximum 255 characters. Defaults from the PO line commodity if omitted.

comment

O

Line-level note or billing memo. Visible to the buyer's AP team.

period

O

Service period for this line. Relevant for recurring services such as consulting or subscriptions. See the Period parameters table below.

tax_lines

CR

Array of tax objects for this line. Required when line_level_taxation is true and the buyer has tax display enabled. See the Tax line parameters table below.

Table 4. Period parameters
ParameterRequiredDescription

start_date

R

Service period start date. Format: YYYY-MM-DD.

end_date

R

Service period end date. Format: YYYY-MM-DD. Must not be before start_date.

Table 5. Tax line parameters
ParameterRequiredDescription

tax_rate

O

Tax rate as a percentage.

tax_amount

O

Calculated tax amount. If omitted, computed as tax_rate × line total / 100.

tax_location

O

Tax jurisdiction identifier (state code, province, or county). Informational.

description

O

Human-readable description of the tax. Informational.

Elements

The following elements are available in the response. The API responds synchronously with a status of pending_submission. Use GET Invoice with the returned id to poll until status is no longer pending_submission.

ElementData TypeAvailable OptionsDescription

id

string (GUID)

Primary tracking identifier for the invoice. A new id is issued for every submission attempt. Use this id to poll for the invoice status using the GET Invoice endpoint (GET /api/v1/invoices/:id).

status

string

pending_submission, submission_failed, or the buyer's invoice status (for example draft, pending_approval, approved, paid)

Current processing status:

  • pending_submission: Stored and queued for delivery to the buyer system. This is always the value in the POST response.
  • submission_failed: Rejected by the buyer system. GET Invoice returns the rejection details in the errors field. A failed record is immutable; submit a corrected invoice to receive a new id.
  • When the buyer system accepts the invoice, status changes to the buyer's invoice status (for example draft, pending_approval, approved, paid). There is no single success value.

csp_supplier_id

integer

CSP identifier of the supplier that submitted the invoice.

po_number

string

Purchase order number of the PO referenced by po_id.

invoice_number

string

Echoed from the request.

invoice_date

datetime

Echoed from the request. Format: YYYY-MM-DDTHH:MM:SSZ in UTC.

po_id

string

Echoed from the request.

currency_code

string

ISO 4217 currency code. Echoed from the request currency field.

line_level_taxation

boolean

true, false

Echoed from the request.

payment_term_code

string

Echoed from the request.

shipping_amount

decimal

Echoed from the request.

handling_amount

decimal

Echoed from the request.

misc_amount

decimal

Echoed from the request.

exchange_rate

decimal

Echoed from the request.

delivery_number

string

Echoed from the request.

delivery_date

datetime

Echoed from the request. Format: YYYY-MM-DDTHH:MM:SSZ in UTC.

supplier_note

string

Echoed from the request.

tax_amount

decimal

Header-level tax amount. Echoed from the request; null if not provided.

internal_note

string

Echoed from the request; null if not provided.

source

string

supplier_api

Origin of the invoice. Always supplier_api for invoices created with this endpoint.

remit_to_address

object

Resolved remit-to address. Contains: integration_code, name, street1, street2, street3, street4, city, state, postal_code, country (all strings; null when empty). null if not provided in the request.

invoice_from_address

object

Resolved invoice-from address. Same fields as remit_to_address. null if not provided in the request.

ship_from_address

object

Resolved ship-from address. Same fields as remit_to_address. null if not provided in the request.

invoice_lines

array

Array of invoice line objects echoed from the request, with system-assigned fields added. Each line contains:

  • id (string GUID)
  • line_num (integer)
  • description (string)
  • quantity (decimal; null for amount lines)
  • price (decimal)
  • total (decimal; null in the POST response)
  • uom (string)
  • tax_amount (decimal; null in the POST response)
  • account_code (string; null if not provided)
  • commodity_name (string; null if not provided)
  • order_line_id (string GUID)
  • period_start_date (datetime; present only when period was sent)
  • period_end_date (datetime; present only when period was sent)
  • tax_lines (array — each entry contains id (string GUID), tax_rate (decimal), tax_amount (decimal), tax_location (string), description (string), created_at (datetime), updated_at (datetime))

created_at

datetime

Automatically set by Coupa. Format: YYYY-MM-DDTHH:MM:SSZ in UTC.

updated_at

datetime

Automatically set by Coupa. Format: YYYY-MM-DDTHH:MM:SSZ in UTC.

Submit an invoice

Endpoint

POST /api/v1/invoices

Example cURL request
curl --request POST \
  --url 'https://supplier.coupahost.com/api/v1/invoices' \
  --header 'Authorization: Bearer ••••••' \
  --header 'Content-Type: application/json' \
  --data '{
  "invoice": {
    "invoice_number": "INV-2024-00456",
    "invoice_date": "2024-06-15T00:00:00Z",
    "po_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
    "currency": "USD",
    "line_level_taxation": true,
    "payment_term_code": "2/10 Net 30",
    "shipping_amount": 25.00,
    "handling_amount": 10.00,
    "misc_amount": 0.00,
    "exchange_rate": 1.0,
    "delivery_number": "DN-2024-789",
    "delivery_date": "2024-06-14T00:00:00Z",
    "supplier_note": "Please process payment by end of month",
    "remit_to_address": { "integration_code": "REMIT-001" },
    "invoice_from_address": { "integration_code": "IFA-001" },
    "invoice_lines": [
      {
        "line_num": 1,
        "description": "Office Supplies - Paper A4",
        "quantity": 100,
        "price": 5.50,
        "uom": "EA",
        "currency": "USD",
        "order_line_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567997",
        "tax_lines": [
          {
            "tax_rate": 8.25,
            "tax_amount": 45.38,
            "tax_location": "CA",
            "description": "CA State Sales Tax"
          }
        ]
      },
      {
        "line_num": 2,
        "description": "Consulting Services - May 2024",
        "price": 2500.00,
        "currency": "USD",
        "order_line_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567998",
        "period": {
          "start_date": "2024-05-01",
          "end_date": "2024-05-31"
        },
        "tax_lines": [
          { "tax_rate": 0, "tax_amount": 0.00 }
        ]
      }
    ]
  }
}'
Example response

201 Created

{
    "id": "0190f3a2-7c4e-7a1b-9f8c-3b4d5e6f7a8b",
    "csp_supplier_id": 12345,
    "invoice_number": "INV-2024-00456",
    "invoice_date": "2024-06-15T00:00:00Z",
    "status": "pending_submission",
    "po_number": "2479015",
    "po_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
    "currency_code": "USD",
    "line_level_taxation": true,
    "tax_amount": null,
    "shipping_amount": 25.00,
    "handling_amount": 10.00,
    "misc_amount": 0.00,
    "exchange_rate": 1,
    "delivery_number": "DN-2024-789",
    "delivery_date": "2024-06-14T00:00:00Z",
    "payment_term_code": "2/10 Net 30",
    "supplier_note": "Please process payment by end of month",
    "internal_note": null,
    "source": "supplier_api",
    "created_at": "2024-06-12T14:30:22Z",
    "updated_at": "2024-06-12T14:30:22Z",
    "invoice_lines": [
        {
            "id": "0190f3a2-7c4e-7a1b-9f8c-3b4d5e6f7a8c",
            "line_num": 1,
            "description": "Office Supplies - Paper A4",
            "quantity": 100,
            "price": 5.5,
            "total": null,
            "uom": "EA",
            "tax_amount": null,
            "account_code": null,
            "commodity_name": null,
            "order_line_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567997",
            "tax_lines": [
                {
                    "id": "0190f3a2-7c4e-7a1b-9f8c-3b4d5e6f7a8d",
                    "tax_rate": 8.25,
                    "tax_amount": 45.38,
                    "tax_location": "CA",
                    "description": "CA State Sales Tax",
                    "created_at": "2024-06-12T14:30:22Z",
                    "updated_at": "2024-06-12T14:30:22Z"
                }
            ]
        },
        {
            "id": "0190f3a2-7c4e-7a1b-9f8c-3b4d5e6f7a8e",
            "line_num": 2,
            "description": "Consulting Services - May 2024",
            "quantity": null,
            "price": 2500,
            "total": null,
            "uom": "",
            "tax_amount": null,
            "account_code": null,
            "commodity_name": null,
            "order_line_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567998",
            "period_start_date": "2024-05-01T00:00:00Z",
            "period_end_date": "2024-05-31T00:00:00Z",
            "tax_lines": [
                {
                    "id": "0190f3a2-7c4e-7a1b-9f8c-3b4d5e6f7a8f",
                    "tax_rate": 0,
                    "tax_amount": 0,
                    "tax_location": null,
                    "description": null,
                    "created_at": "2024-06-12T14:30:22Z",
                    "updated_at": "2024-06-12T14:30:22Z"
                }
            ]
        }
    ],
    "remit_to_address": {
        "integration_code": "REMIT-001",
        "name": null,
        "street1": "88 Fulton Street",
        "street2": null,
        "street3": null,
        "street4": null,
        "city": "New York",
        "state": "NY",
        "postal_code": "10038",
        "country": "US"
    },
    "invoice_from_address": {
        "integration_code": "IFA-001",
        "name": null,
        "street1": "101 Manhattan",
        "street2": null,
        "street3": null,
        "street4": null,
        "city": "New York",
        "state": "NY",
        "postal_code": "10010",
        "country": "US"
    },
    "ship_from_address": null
}
Example error response (400 Bad Request — required fields missing)
{
    "error": {
        "message": "Invalid request parameter value.",
        "code": "BAD_REQUEST",
        "type": "validation_error",
        "timestamp": "2026-10-29T10:30:00Z",
        "details": [
            {
                "field": "invoice_number",
                "issue": "invoice_number is required"
            },
            {
                "field": "po_id",
                "issue": "po_id is required"
            }
        ]
    }
}
Example error response (400 Bad Request — address could not be resolved)
{
    "error": {
        "message": "Invalid request parameter value.",
        "code": "BAD_REQUEST",
        "type": "validation_error",
        "timestamp": "2026-10-29T10:30:00Z",
        "details": [
            {
                "field": "remit_to_address.integration_code",
                "issue": "Cannot find a valid address"
            }
        ]
    }
}
Example error response (401 Unauthorized — invalid token)
{
    "error": "invalid_token",
    "error_description": "The access token provided is expired, revoked, malformed or invalid for other reasons."
}
Example error response (401 Unauthorized — insufficient scope)
{
    "error": {
        "message": "Insufficient scope. Required scope: csp.invoices.write",
        "code": "INSUFFICIENT_SCOPE",
        "type": "authorization_error",
        "timestamp": "2026-10-29T10:30:00Z"
    }
}
Example error response (403 Forbidden — invoice creation not enabled)
{
    "error": {
        "message": "This feature is not yet enabled.",
        "code": "FEATURE_NOT_ENABLED",
        "type": "authorization_error",
        "timestamp": "2026-10-29T10:30:00Z"
    }
}
Example error response (413 Payload Too Large)
{
    "error": {
        "message": "The request body exceeds the maximum allowed size limit of 256 KB.",
        "code": "PAYLOAD_TOO_LARGE",
        "type": "validation_error",
        "timestamp": "2026-10-29T10:30:00Z",
        "details": {
            "limit_bytes": 262144,
            "received_bytes": 300512
        }
    }
}
Example error response (422 Invoice creation failed)
{
    "error": {
        "message": "Failed to create invoice: Duplicate invoice number",
        "code": "INVOICE_CREATION_FAILED",
        "type": "validation_error",
        "timestamp": "2026-10-29T10:30:00Z",
        "details": "Duplicate invoice number"
    }
}
Example error response (429 Too Many Requests — per-minute limit)
{
    "error": {
        "message": "Rate limit exceeded. Maximum 100 requests per minute allowed. Please try again after 42 seconds.",
        "code": "TOO_MANY_REQUESTS",
        "type": "rate_limit_exceeded",
        "timestamp": "2026-10-29T10:30:00Z"
    }
}
Example error response (429 Too Many Requests — daily limit)
{
    "error": {
        "message": "Daily usage limit exceeded. Maximum 5000 requests per day allowed. Please try again after 2026-10-30T00:00:00Z",
        "code": "TOO_MANY_REQUESTS",
        "type": "rate_limit_exceeded",
        "timestamp": "2026-10-29T10:30:00Z"
    }
}
Example error response (500 Internal Server Error)
{
    "error": {
        "message": "Something went wrong, Please try again",
        "code": "INTERNAL_SERVER_ERROR",
        "type": "server_error",
        "timestamp": "2026-10-29T10:30:00Z"
    }
}