The invoice creation request.
Success
Bad Request
Not Found
Server Error
{- "dueDate": "string",
- "cardPaymentProcessorId": "db82121d-3317-4452-ab36-552196b0f55a",
- "achPaymentProcessorId": "7795a840-221a-45e0-9419-a69eaa3463ff",
- "additionalNotes": "string",
- "shippingAmount": 0,
- "taxPercentage": 0,
- "feesPercentage": 0,
- "discountPercentage": 0,
- "merchantContactInfoId": "f5d826ad-fdaf-44d6-8e8e-3260a44e8639",
- "customerId": "87d8e330-2878-4742-a86f-dbbb3bf522ac",
- "achAllowFasterProcessing": true,
- "customer": {
- "firstName": "string",
- "lastName": "string",
- "companyName": "string",
- "email": "string",
- "mobilePhoneNumber": "string",
- "isMobileNumberSmsNotificationsEnabled": true,
- "useBillingAsShippingAddress": true,
- "billingAddress": {
- "line1": "string",
- "line2": "string",
- "city": "string",
- "zip": "string",
- "countryId": 0,
- "stateId": 0,
- "stateName": "string"
}, - "shippingAddress": {
- "line1": "string",
- "line2": "string",
- "city": "string",
- "zip": "string",
- "countryId": 0,
- "stateId": 0,
- "stateName": "string"
}
}, - "lineItems": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "lineItemId": "ecf65d8c-fd37-452f-82f1-ff563e6f910f",
- "unitTypeId": 0,
- "productName": "string",
- "description": "string",
- "sku": "string",
- "unitPrice": 0,
- "quantity": 0,
- "discountPercentage": 0,
- "totalAmount": 0
}
], - "canPriceBeForceOverrided": true
}
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}
Success
{- "items": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "number": "string",
- "customerName": "string",
- "issueDate": "2019-08-24T14:15:22Z",
- "dueDate": "2019-08-24T14:15:22Z",
- "paymentDate": "2019-08-24T14:15:22Z",
- "totalAmount": 0,
- "status": 1
}
], - "total": 0
}
Success
Not Found
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "number": "string",
- "status": 1,
- "issueDate": "2019-08-24T14:15:22Z",
- "dueDate": "2019-08-24T14:15:22Z",
- "paymentDate": "2019-08-24T14:15:22Z",
- "cardPaymentProcessorId": "db82121d-3317-4452-ab36-552196b0f55a",
- "achPaymentProcessorId": "7795a840-221a-45e0-9419-a69eaa3463ff",
- "additionalNotes": "string",
- "subTotalAmount": 0,
- "shippingAmount": 0,
- "totalAmount": 0,
- "taxPercentage": 0,
- "feesPercentage": 0,
- "discountPercentage": 0,
- "surchargePercentage": 0,
- "surchargeAmount": 0,
- "paymentMethodTypeId": 0,
- "merchantId": "c3073b9d-edd0-49f2-a28d-b7ded8ff9a8b",
- "merchantContactInfoId": "f5d826ad-fdaf-44d6-8e8e-3260a44e8639",
- "merchantContactInfo": {
- "addressLine1": "string",
- "addressLine2": "string",
- "city": "string",
- "zip": "string",
- "countryId": 0,
- "stateId": 0,
- "stateName": "string",
- "email": "string",
- "businessPhoneNumber": "string"
}, - "customerId": "87d8e330-2878-4742-a86f-dbbb3bf522ac",
- "customer": {
- "firstName": "string",
- "lastName": "string",
- "companyName": "string",
- "email": "string",
- "mobilePhoneNumber": "string",
- "isMobileNumberSmsNotificationsEnabled": true,
- "useBillingAsShippingAddress": true,
- "billingAddress": {
- "line1": "string",
- "line2": "string",
- "city": "string",
- "zip": "string",
- "countryId": 0,
- "stateId": 0,
- "stateName": "string"
}, - "shippingAddress": {
- "line1": "string",
- "line2": "string",
- "city": "string",
- "zip": "string",
- "countryId": 0,
- "stateId": 0,
- "stateName": "string"
}
}, - "lineItems": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "lineItemId": "ecf65d8c-fd37-452f-82f1-ff563e6f910f",
- "unitTypeId": 0,
- "productName": "string",
- "description": "string",
- "sku": "string",
- "unitPrice": 0,
- "quantity": 0,
- "discountPercentage": 0,
- "totalAmount": 0
}
], - "isCustomerUpdated": true,
- "isLineItemsUpdated": true,
- "fullUrl": "string",
- "shortUrl": "string",
- "markedAsPaid": true,
- "transactionId": "75906707-8c31-479c-b354-aa805c4cefbc",
- "achAllowFasterProcessing": true,
- "history": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "invoiceId": "4f163819-178d-470c-a246-d6768476a6ec",
- "typeId": 0,
- "typeName": "string",
- "errorCode": "string",
- "errorMessage": "string",
- "notificationId": "2d591c23-85b1-4e8c-a6bd-74d89f8955c5",
- "notificationType": "string",
- "notificationTypeId": 0,
- "notificationTemplateType": "string",
- "notificationTemplateTypeId": 0,
- "notificationTarget": "string",
- "transactionId": "75906707-8c31-479c-b354-aa805c4cefbc",
- "paymentMethodTypeId": 0,
- "createdOn": "2019-08-24T14:15:22Z"
}
]
}
The invoice update request.
Success
Bad Request
Not Found
Server Error
{- "dueDate": "string",
- "cardPaymentProcessorId": "db82121d-3317-4452-ab36-552196b0f55a",
- "achPaymentProcessorId": "7795a840-221a-45e0-9419-a69eaa3463ff",
- "additionalNotes": "string",
- "shippingAmount": 0,
- "taxPercentage": 0,
- "feesPercentage": 0,
- "discountPercentage": 0,
- "merchantContactInfoId": "f5d826ad-fdaf-44d6-8e8e-3260a44e8639",
- "customerId": "87d8e330-2878-4742-a86f-dbbb3bf522ac",
- "achAllowFasterProcessing": true,
- "customer": {
- "firstName": "string",
- "lastName": "string",
- "companyName": "string",
- "email": "string",
- "mobilePhoneNumber": "string",
- "isMobileNumberSmsNotificationsEnabled": true,
- "useBillingAsShippingAddress": true,
- "billingAddress": {
- "line1": "string",
- "line2": "string",
- "city": "string",
- "zip": "string",
- "countryId": 0,
- "stateId": 0,
- "stateName": "string"
}, - "shippingAddress": {
- "line1": "string",
- "line2": "string",
- "city": "string",
- "zip": "string",
- "countryId": 0,
- "stateId": 0,
- "stateName": "string"
}
}, - "lineItems": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "lineItemId": "ecf65d8c-fd37-452f-82f1-ff563e6f910f",
- "unitTypeId": 0,
- "productName": "string",
- "description": "string",
- "sku": "string",
- "unitPrice": 0,
- "quantity": 0,
- "discountPercentage": 0,
- "totalAmount": 0
}
], - "canPriceBeForceOverrided": true
}
{- "errors": {
- "Email": [
- "'Email' is not a valid email address."
]
}, - "details": "Validation failed: \n -- Email: 'Email' is not a valid email address. Severity: Error",
- "statusCode": 400,
- "source": "<Service>",
- "exceptionType": "FluentValidation.ValidationException",
- "correlationId": "aa6cfcd0-0295-4a4c-b074-8c901f114fee",
- "entityId": null,
- "errorCode": null
}
You can't delete published invoices.
Success
Bad Request
Not Found
Server Error
{- "errors": {
- "Email": [
- "'Email' is not a valid email address."
]
}, - "details": "Validation failed: \n -- Email: 'Email' is not a valid email address. Severity: Error",
- "statusCode": 400,
- "source": "<Service>",
- "exceptionType": "FluentValidation.ValidationException",
- "correlationId": "aa6cfcd0-0295-4a4c-b074-8c901f114fee",
- "entityId": null,
- "errorCode": null
}
The request containing the details for invoice submission.
Success
Bad Request
Not Found
Server Error
{- "totalAmount": 0,
- "accountNumber": "string",
- "expirationYear": 0,
- "expirationMonth": 0,
- "securityCode": "string",
- "billingCountryId": 0,
- "billingPostalCode": "string",
- "savePaymentMethod": true
}
{- "success": true,
- "paymentMethodCreated": true
}
The request containing the details for invoice submission.
Success
Bad Request
Not Found
Server Error
{- "routingNumber": "string",
- "accountNumber": "string",
- "accountType": 1,
- "accountHolderType": 1,
- "firstName": "string",
- "lastName": "string",
- "companyName": "string",
- "email": "string",
- "mobileNumber": "string",
- "smsNotification": true,
- "addressLine1": "string",
- "addressLine2": "string",
- "city": "string",
- "stateId": 0,
- "billingPostalCode": "string",
- "savePaymentMethod": true,
- "saveCustomerInfo": true,
- "authorizeBankWithdrawal": true
}
{- "success": true,
- "paymentMethodCreated": true
}
Success
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "subTotalAmount": 0,
- "shippingAmount": 0,
- "taxPercentage": 0,
- "taxAmount": 0,
- "feesPercentage": 0,
- "feesAmount": 0,
- "discountPercentage": 0,
- "discountAmount": 0,
- "surchargePercentage": 0,
- "surchargeAmount": 0,
- "totalAmount": 0
}
The request containing the details for publishing the invoice.
Success
Bad Request
Not Found
Server Error
{- "dueDate": "string",
- "cardPaymentProcessorId": "db82121d-3317-4452-ab36-552196b0f55a",
- "achPaymentProcessorId": "7795a840-221a-45e0-9419-a69eaa3463ff",
- "additionalNotes": "string",
- "shippingAmount": 0,
- "taxPercentage": 0,
- "feesPercentage": 0,
- "discountPercentage": 0,
- "merchantContactInfoId": "f5d826ad-fdaf-44d6-8e8e-3260a44e8639",
- "customerId": "87d8e330-2878-4742-a86f-dbbb3bf522ac",
- "achAllowFasterProcessing": true,
- "customer": {
- "firstName": "string",
- "lastName": "string",
- "companyName": "string",
- "email": "string",
- "mobilePhoneNumber": "string",
- "isMobileNumberSmsNotificationsEnabled": true,
- "useBillingAsShippingAddress": true,
- "billingAddress": {
- "line1": "string",
- "line2": "string",
- "city": "string",
- "zip": "string",
- "countryId": 0,
- "stateId": 0,
- "stateName": "string"
}, - "shippingAddress": {
- "line1": "string",
- "line2": "string",
- "city": "string",
- "zip": "string",
- "countryId": 0,
- "stateId": 0,
- "stateName": "string"
}
}, - "lineItems": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "lineItemId": "ecf65d8c-fd37-452f-82f1-ff563e6f910f",
- "unitTypeId": 0,
- "productName": "string",
- "description": "string",
- "sku": "string",
- "unitPrice": 0,
- "quantity": 0,
- "discountPercentage": 0,
- "totalAmount": 0
}
], - "canPriceBeForceOverrided": true,
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}
Only invoices in published(Due, Past Due) status and not paid can be canceled.
Success
Bad Request
Not Found
Server Error
{- "errors": {
- "Email": [
- "'Email' is not a valid email address."
]
}, - "details": "Validation failed: \n -- Email: 'Email' is not a valid email address. Severity: Error",
- "statusCode": 400,
- "source": "<Service>",
- "exceptionType": "FluentValidation.ValidationException",
- "correlationId": "aa6cfcd0-0295-4a4c-b074-8c901f114fee",
- "entityId": null,
- "errorCode": null
}
Only invoices in published(Due, Past Due) status and not paid can be marked as paid.
Success
Bad Request
Not Found
Server Error
{- "paymentMethodTypeId": 0
}
{- "errors": {
- "Email": [
- "'Email' is not a valid email address."
]
}, - "details": "Validation failed: \n -- Email: 'Email' is not a valid email address. Severity: Error",
- "statusCode": 400,
- "source": "<Service>",
- "exceptionType": "FluentValidation.ValidationException",
- "correlationId": "aa6cfcd0-0295-4a4c-b074-8c901f114fee",
- "entityId": null,
- "errorCode": null
}
The request containing the details for the SMS notification.
Success
Bad Request
Not Found
Server Error
{- "phoneNumber": "string",
- "customerConsent": true
}
{- "errors": {
- "Email": [
- "'Email' is not a valid email address."
]
}, - "details": "Validation failed: \n -- Email: 'Email' is not a valid email address. Severity: Error",
- "statusCode": 400,
- "source": "<Service>",
- "exceptionType": "FluentValidation.ValidationException",
- "correlationId": "aa6cfcd0-0295-4a4c-b074-8c901f114fee",
- "entityId": null,
- "errorCode": null
}
Available only for published invoices.
Success
Not Found
Server Error
"string"
The request containing the details for the Email notification.
Success
Bad Request
Not Found
Server Error
{- "receiverEmail": "string",
- "customerConsent": true
}
{- "errors": {
- "Email": [
- "'Email' is not a valid email address."
]
}, - "details": "Validation failed: \n -- Email: 'Email' is not a valid email address. Severity: Error",
- "statusCode": 400,
- "source": "<Service>",
- "exceptionType": "FluentValidation.ValidationException",
- "correlationId": "aa6cfcd0-0295-4a4c-b074-8c901f114fee",
- "entityId": null,
- "errorCode": null
}