Pay

ParamNotes
bill_idThe internal ID of the bill being paid.
dataThe BillConfigData object.

BillConfigData

ParamNotes
saved_paymentAn id from List Saved Payments, e.g. cim:11 or cryozonic_achpayments:pm_bank_1. It must belong to the invoice's account.
send_emailFlag used to trigger email send. Value can be 1 or 0.
shipmentData(Boolean or ShipmentData) If set to true then the shipment will be created at the time of the request. If set to false it will configure the shipment to be created when the bill is paid and the invoice is created. (Default: false). Can use ShipmentData object to configure specifically. Ignored when amount is provided.
comment_customer_notifyShould the comment text be added to the email. Value should be 1 or 0. Ignored when amount is provided (use comments instead).
comment_textThe comment to be added to the invoice. Value should be a string. Ignored when amount is provided (use comments instead).
is_visible_on_frontCan the comment be visible on the storefront by the customer. Value can be 1 or 0. Ignored when amount is provided (use comments instead).
capture_case"online" to capture an authorization or "offline" to make an offline payment. Must be "offline" (or omitted) when amount is provided.
amount(Optional) Amount to pay toward the bill, in the store's base currency. Must be greater than 0 and no more than the bill's remaining balance. When provided, a partial payment is recorded against the bill instead of paying it in full. The invoice is created automatically once the remaining balance reaches 0. Only offline payments are supported.
is_percentage(Optional) If set to 1, amount is treated as a percentage (0–100) of the bill's remaining balance. Value can be 1 or 0. (Default: 0)
method_code(Optional) Offline payment method code to record on the payment (ex. checkmo, purchaseorder, banktransfer, cashondelivery). Only used when amount is provided.
method_code_comment(Optional) Note to go with method_code, such as a check or reference number. Value should be a string. Only used when amount is provided.
comments(Optional) Array of comment strings or PaymentCommentData objects to add to the payment. Only used when amount is provided.
created_at(Optional) Date/time to record as the payment date (ex. 2026-09-24 14:30:00). Defaults to the current time. Only used when amount is provided.

Response

  • When amount is provided: the increment ID of the payment that was created.

  • When amount is not provided: the increment ID of the invoice that was created (unchanged).

PaymentCommentData

ParamNotes
textThe comment text. Value should be a string.
is_customer_notifiedShould the comment be included in the payment email to the customer. Value can be 1 or 0.
is_visible_on_frontCan the comment be visible on the storefront by the customer. Value can be 1 or 0.

ShipmentData

ParamNotes
do_shipmentShould ship at the time the invoice is created. Value can be 1 or 0.
ship_itemsObject key is itemId and the value is qty. (ex. { "311": "2", "312": "1" } Would ship 2 of order item 311 and 1 of order item 312) The Order Item ID that is used will always be the Parent ID in the event of a Configurable/Grouped/Bundled product. (Optional, will use all items/quantities that are being invoiced if not provided.)
trackingArray of TrackingData

TrackingData

ParamNotes
carrier_codeCode for the shipment carrier used for tracking. A list is available using the Get Carriers method.
numberTracking Number
titleTracking Carrier title
Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
string
data
object
Response

Language
Credentials
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json