API Basics
Pay In Endpoints
- MoneyIn
- Subscription
- TokenStorage
- Invoice
- LineItem
- PaymentLink
- PaymentMethodDomain
- HostedPaymentPages
- Cloud
- Wallet: Apple Pay
Pay Out Endpoints
- MoneyOut
- Bill
Pay Ops Endpoints
- Templates
- Boarding
- Chargebacks and ACH Returns
- Entities
- Notification
- Query
- Statistic
- Export
- Import
Object Models
- Object Model References
Add Invoice
Creates an invoice in an entrypoint.
POST
/
Invoice
/
{entry}
curl --request POST \
--url https://api-sandbox.payabli.com/api/Invoice/{entry} \
--header 'Content-Type: application/json' \
--header 'requestToken: <api-key>' \
--data '{
"customerData": {
"customerId": 4440,
"firstName": "John",
"lastName": "Doe",
"company": "Sunshine LLC",
"customerNumber": "3456-7645A",
"billingAddress1": "123 Walnut Street",
"billingAddress2": "STE 900",
"billingCity": "Johnson City",
"billingState": "Johnson City",
"billingZip": "37615",
"billingCountry": "US",
"billingPhone": "5555555555",
"billingEmail": "example@email.com",
"shippingAddress1": "123 Walnut St",
"shippingAddress2": "STE 900",
"shippingCity": "Johnson City",
"shippingState": "TN",
"shippingZip": "37619",
"shippingCountry": "US",
"additionalData": {
"key1": "value1",
"key2": "value2",
"key3": "value3"
},
"identifierFields": [
"email"
]
},
"invoiceData": {
"invoiceNumber": "INV-2345",
"invoiceDate": "2024-07-01",
"invoiceDueDate": "2024-07-01",
"invoiceType": 0,
"invoiceEndDate": "2024-07-01",
"invoiceStatus": 1,
"frequency": "monthly",
"paymentTerms": "PIA",
"termsConditions": "Must be paid before work scheduled.",
"notes": "Example notes.",
"tax": 2.05,
"discount": 10,
"invoiceAmount": 105,
"freightAmount": 10,
"dutyAmount": 0,
"purchaseOrder": "PO-345",
"firstName": "Chad",
"lastName": "Mercia",
"company": "ACME, INC",
"shippingAddress1": "123 Walnut St",
"shippingAddress2": "STE 900",
"shippingCity": "Johnson City",
"shippingState": "TN",
"shippingZip": "37619",
"shippingCountry": "US",
"shippingEmail": "example@email.com",
"shippingPhone": "5555555555",
"shippingFromZip": "30040",
"summaryCommodityCode": "501718",
"items": [
{
"itemProductCode": "M-DEPOSIT",
"itemProductName": "Materials deposit",
"itemDescription": "Deposit for materials.",
"itemCommodityCode": "010",
"itemUnitOfMeasure": "SqFt",
"itemCost": 5,
"itemQty": 1,
"itemMode": 0,
"itemCategories": [
"<string>"
],
"itemTotalAmount": 123,
"itemTaxAmount": 7,
"itemTaxRate": 0.075
}
],
"attachments": {},
"AdditionalData": {
"key1": "value1",
"key2": "value2",
"key3": "value3"
}
},
"scheduledOptions": {
"includePaylink": true,
"includePdf": true
}
}'
{
"isSuccess": true,
"responseText": "Success",
"responseCode": 1,
"responseData": 3625,
"pageidentifier": null
}
Authorizations
Most endpoints require an organization
token. Some endpoints require an application
token, and those endpoints are noted.
Headers
A unique ID you can include to prevent duplicating objects or transactions if a request is sent more than once. This key is not generated in Payabli, you must generate it yourself.
Example:
"6B29FC40-CA47-1067-B31D-00DD010662DA"
Path Parameters
The paypoint's entrypoint identifier. Learn more
Example:
"8cfec329267"
Query Parameters
When true
, the request creates a new customer record, regardless of whether customer identifiers match an existing customer.
Body
The InvoiceData object builds the invoice for the paypoint.
The body is of type object
.
Response
200
application/json
Success
Response schema for invoice operations.
Was this page helpful?
curl --request POST \
--url https://api-sandbox.payabli.com/api/Invoice/{entry} \
--header 'Content-Type: application/json' \
--header 'requestToken: <api-key>' \
--data '{
"customerData": {
"customerId": 4440,
"firstName": "John",
"lastName": "Doe",
"company": "Sunshine LLC",
"customerNumber": "3456-7645A",
"billingAddress1": "123 Walnut Street",
"billingAddress2": "STE 900",
"billingCity": "Johnson City",
"billingState": "Johnson City",
"billingZip": "37615",
"billingCountry": "US",
"billingPhone": "5555555555",
"billingEmail": "example@email.com",
"shippingAddress1": "123 Walnut St",
"shippingAddress2": "STE 900",
"shippingCity": "Johnson City",
"shippingState": "TN",
"shippingZip": "37619",
"shippingCountry": "US",
"additionalData": {
"key1": "value1",
"key2": "value2",
"key3": "value3"
},
"identifierFields": [
"email"
]
},
"invoiceData": {
"invoiceNumber": "INV-2345",
"invoiceDate": "2024-07-01",
"invoiceDueDate": "2024-07-01",
"invoiceType": 0,
"invoiceEndDate": "2024-07-01",
"invoiceStatus": 1,
"frequency": "monthly",
"paymentTerms": "PIA",
"termsConditions": "Must be paid before work scheduled.",
"notes": "Example notes.",
"tax": 2.05,
"discount": 10,
"invoiceAmount": 105,
"freightAmount": 10,
"dutyAmount": 0,
"purchaseOrder": "PO-345",
"firstName": "Chad",
"lastName": "Mercia",
"company": "ACME, INC",
"shippingAddress1": "123 Walnut St",
"shippingAddress2": "STE 900",
"shippingCity": "Johnson City",
"shippingState": "TN",
"shippingZip": "37619",
"shippingCountry": "US",
"shippingEmail": "example@email.com",
"shippingPhone": "5555555555",
"shippingFromZip": "30040",
"summaryCommodityCode": "501718",
"items": [
{
"itemProductCode": "M-DEPOSIT",
"itemProductName": "Materials deposit",
"itemDescription": "Deposit for materials.",
"itemCommodityCode": "010",
"itemUnitOfMeasure": "SqFt",
"itemCost": 5,
"itemQty": 1,
"itemMode": 0,
"itemCategories": [
"<string>"
],
"itemTotalAmount": 123,
"itemTaxAmount": 7,
"itemTaxRate": 0.075
}
],
"attachments": {},
"AdditionalData": {
"key1": "value1",
"key2": "value2",
"key3": "value3"
}
},
"scheduledOptions": {
"includePaylink": true,
"includePdf": true
}
}'
{
"isSuccess": true,
"responseText": "Success",
"responseCode": 1,
"responseData": 3625,
"pageidentifier": null
}