Create

This endpoint creates a Payment.
It can also create a Shipment for certain items.

ParamNotes
orderIncrementIdThe increment ID of the order to create the invoice for.
itemsQtyObject key is itemId and the value is qty. (ex. { "311": "2", "312": "1" } Would invoice 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. If an empty JSON object is posted then it will process ALL remaining items.
commentMessage to send to create on invoice for customer to see. (Optional)
emailFlag to send invoice email to customer on creation. Use value 1 to send
includeCommentFlag to include comment on the email, if sent. Use value 1 to include.
shipmentDataUsed when shipping at the same time as invoicing. Array of ShipmentData OR true. When set to true it will ship all items/quantities that are being invoiced.
extraDataUsed to set custom totals. Uses ExtraData

ShipmentData

ParamNotes
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
send_email1

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

ExtraData

ParamNotes
totals_infoObject used to set custom totals for invoice. Array of ExtraDataTotal

ExtraDataTotal

ParamNotes
codeTotal being updated. (shipping, discount, payment_surcharge, tax)
base_raw_valueValue to set the total to. (number)
Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
string
itemsQty
object
string
string
string
shipmentData
object
extraData
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