PUT /purchases/{id}/send.json
Path parameters
-
Numeric ID of the instance
Minimum value is
1
.
Body Required
-
adjustmentReasonId integer(int32) | null
Adjustment reason
-
adminNotes string | null
Admin notes
-
Approved
Default value is
true
. -
billingAddressLineOne string | null
Billing address line one
-
billingAddressLineTwo string | null
Billing address line two
-
billingAddressMessage string | null
Billing address message
-
billingCity string | null
Billing city
-
billingCountry string | null
Billing country
-
billingFirstName string | null
Billing first name
billingFullName object | null | array | boolean | integer | number | string
Any of: Billing full name
Billing full name
Billing full name
Billing full name
Billing full name
Billing full name
-
billingLastName string | null
Billing last name
-
billingName string | null
Billing name
-
billingState string | null
Billing state
-
billingZip string | null
Billing zip
-
Cancellation status
Values are
none
,partial
, orfull
. Default value isnone
. -
Cancelled
Default value is
false
. -
cancelledAt string(date-time) | null
Cancelled at
-
cityTaxLocation string | null
City tax location
-
cityTaxRate number(float) | null
City tax rate
-
combinedTaxRate number(float) | null
Combined tax rate
-
countyTaxLocation string | null
County tax location
-
countyTaxRate number(float) | null
County tax rate
-
createdAt string(date-time)
Created at
-
customerReference string | null
Customer reference
-
Date ordered
Default value is
{}
(empty). -
deliveryExpectedAt string(date-time) | null
Delivery expected at
-
Discounts
Default value is
0
. -
districtTaxRate number(float) | null
District tax rate
-
dropshipNotes string | null
Dropship notes
-
dropshipProviderAddressId integer(int32) | null
Dropship provider address
-
dropshipProviderId integer(int32) | null
Dropship provider
-
Finalized
Default value is
true
. -
id integer(int32)
Id
-
intercomMessageId string | null
Intercom message
-
internalReference string | null
Internal reference
-
invalidBillingAddress string | null
Invalid billing address
-
Invalid shipping address
Default value is
false
. -
Inventory status
Values are
notReceived
,partiallyReceived
, orreceived
. Default value isnotReceived
. invoiceProblem object | null | array | boolean | integer | number | string
Any of: Invoice problem
Invoice problem
Invoice problem
Invoice problem
Invoice problem
Invoice problem
-
Invoice status
Values are
notInvoiced
,partiallyInvoiced
, orinvoiced
. Default value isnotInvoiced
. -
Is dropship
labelProblem object | null | array | boolean | integer | number | string
-
Last dropshipment reference
Default value is
0
. -
Last goods receipt reference
Default value is
0
. -
Last purchase invoice reference
Default value is
0
. -
Locked
Default value is
false
. -
Mute error
Default value is
false
. -
notes string | null
Notes
orderProblem object | null | array | boolean | integer | number | string
-
Order splitting
Values are
group
,splitTag
,splitQuantity
, orexternalLocationId
. Default value isgroup
. -
orderSplittingKey string | null
Order splitting key
pauseProblems object | null | array | boolean | integer | number | string
-
paymentExpectedAt string(date-time) | null
Payment expected at
-
Payment status
Values are
notPaid
,partiallyPaid
, orpaid
. Default value isnotPaid
. -
priceListId integer(int32) | null
Price list
-
purchaseId integer(int32) | null
Purchase
-
purchaseImportExternalId string | null
Purchase import external
-
purchaseStatusId integer(int32) | null
Purchase status
-
Purchase type
Values are
replenishment
,dropship
,automated_dropship
,automated_replenishment
, oradjusted_dropship
. Default value isreplenishment
. -
Quantity
Default value is
0
. -
receiverAddressLineOne string | null
Receiver address line one
-
receiverAddressLineTwo string | null
Receiver address line two
-
receiverCity string | null
Receiver city
-
receiverCountry string | null
Receiver country
-
receiverName string | null
Receiver name
-
receiverState string | null
Receiver state
-
receiverZip string | null
Receiver zip
-
Reference
-
reminderLastSent string(date-time) | null
Reminder last sent
-
Reminder sent
Default value is
false
. returnLabelProblem object | null | array | boolean | integer | number | string
Any of: Return label problem
Return label problem
Return label problem
Return label problem
Return label problem
Return label problem
-
Return status
Values are
notReturned
,partiallyReturned
, orreturned
. Default value isnotReturned
. -
saleId integer(int32) | null
Sale
-
sendSource string | null
Send source
Values are
manual
orautomatic
. -
Shipment routing
Values are
customer
,consolidated
, orconsolidatedInternational
. Default value iscustomer
. -
shippingAddressLineOne string | null
Shipping address line one
-
shippingAddressLineTwo string | null
Shipping address line two
-
Shipping address message
Default value is
false
. -
shippingCity string | null
Shipping city
-
shippingCountry string | null
Shipping country
-
shippingExpectedAt string(date-time) | null
Shipping expected at
-
shippingFirstName string | null
Shipping first name
shippingFullName object | null | array | boolean | integer | number | string
Any of: Shipping full name
Shipping full name
Shipping full name
Shipping full name
Shipping full name
Shipping full name
-
shippingLastName string | null
Shipping last name
-
shippingName string | null
Shipping name
-
shippingRateError string | null
Shipping rate error
Values are
value
orweight
. -
shippingState string | null
Shipping state
-
shippingZip string | null
Shipping zip
-
splitTag string | null
Split tag
-
stateTaxLocation string | null
State tax location
-
stateTaxRate number(float) | null
State tax rate
-
Subtotal
Default value is
0
. -
Tax
Default value is
0
. -
Tax calculation
Values are
default
orcustom
. Default value isdefault
. -
Tax included
Default value is
false
. -
Tax shipping
Default value is
true
. -
Total
Default value is
0
. -
updatedAt string(date-time)
Updated at
-
userId integer(int32) | null
User
-
vendorEndpointFormat string | null
Vendor endpoint format
Values are
json
,xml
,csv
,text
,email
,website
, orphone
. vendorEndpointHeaders object | null | array | boolean | integer | number | string
Any of: Vendor endpoint headers
Vendor endpoint headers
Vendor endpoint headers
Vendor endpoint headers
Vendor endpoint headers
Vendor endpoint headers
-
vendorEndpointResponse string | null
Vendor endpoint response
-
vendorId integer(int32) | null
Vendor
-
vendorReceivedId string | null
Vendor received
-
vendorReceivedReference string | null
Vendor received reference
-
Vendor received status
Values are
notSent
,received
, orerror
. Default value isnotSent
. -
Vendor received status reason
Values are
sent
,shipped
, orcancelled
. Default value issent
. -
vendorReference string | null
Vendor reference
-
warehouseId integer(int32) | null
Warehouse
-
Weight
Default value is
0
.
curl \
-X PUT http://api.example.com/v1/purchases/{id}/send.json \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"adjustmentReasonId":42,"adminNotes":"string","approved":true,"billingAddressLineOne":"string","billingAddressLineTwo":"string","billingAddressMessage":"string","billingCity":"string","billingCountry":"string","billingFirstName":"string","billingFullName":{},"billingLastName":"string","billingName":"string","billingState":"string","billingZip":"string","cancellationStatus":"none","cancelled":false,"cancelledAt":"2024-05-04T09:42:00+00:00","cityTaxLocation":"string","cityTaxRate":42.0,"combinedTaxRate":42.0,"countyTaxLocation":"string","countyTaxRate":42.0,"createdAt":"2024-05-04T09:42:00+00:00","customerReference":"string","dateOrdered":{},"deliveryExpectedAt":"2024-05-04T09:42:00+00:00","discounts":0,"districtTaxRate":42.0,"dropshipNotes":"string","dropshipProviderAddressId":42,"dropshipProviderId":42,"files":{},"finalized":true,"id":42,"intercomMessageId":"string","internalReference":"string","invalidBillingAddress":"string","invalidShippingAddress":false,"inventoryStatus":"notReceived","invoiceProblem":{},"invoiceStatus":"notInvoiced","isDropship":true,"labelProblem":{},"lastDropshipmentReference":0,"lastGoodsReceiptReference":0,"lastPurchaseInvoiceReference":0,"locked":false,"muteError":false,"notes":"string","orderProblem":{},"orderSplitting":"group","orderSplittingKey":"string","pauseProblems":{},"paymentExpectedAt":"2024-05-04T09:42:00+00:00","paymentStatus":"notPaid","priceListId":42,"purchaseId":42,"purchaseImportExternalId":"string","purchaseStatusId":42,"purchaseType":"replenishment","quantity":0,"receiverAddressLineOne":"string","receiverAddressLineTwo":"string","receiverCity":"string","receiverCountry":"string","receiverName":"string","receiverState":"string","receiverZip":"string","reference":"string","reminderLastSent":"2024-05-04T09:42:00+00:00","reminderSent":false,"returnLabelProblem":{},"returnStatus":"notReturned","saleId":42,"sendSource":"manual","shipmentRouting":"customer","shippingAddressLineOne":"string","shippingAddressLineTwo":"string","shippingAddressMessage":false,"shippingCity":"string","shippingCountry":"string","shippingExpectedAt":"2024-05-04T09:42:00+00:00","shippingFirstName":"string","shippingFullName":{},"shippingLastName":"string","shippingName":"string","shippingRateError":"value","shippingState":"string","shippingZip":"string","splitTag":"string","stateTaxLocation":"string","stateTaxRate":42.0,"subtotal":0,"tags":["string"],"tax":0,"taxCalculation":"default","taxIncluded":false,"taxShipping":true,"total":0,"updatedAt":"2024-05-04T09:42:00+00:00","userId":42,"vendorEndpointFormat":"json","vendorEndpointHeaders":{},"vendorEndpointResponse":"string","vendorId":42,"vendorReceivedId":"string","vendorReceivedReference":"string","vendorReceivedStatus":"notSent","vendorReceivedStatusReason":"sent","vendorReference":"string","warehouseId":42,"weight":0}'
{
"adjustmentReasonId": 42,
"adminNotes": "string",
"approved": true,
"billingAddressLineOne": "string",
"billingAddressLineTwo": "string",
"billingAddressMessage": "string",
"billingCity": "string",
"billingCountry": "string",
"billingFirstName": "string",
"billingFullName": {},
"billingLastName": "string",
"billingName": "string",
"billingState": "string",
"billingZip": "string",
"cancellationStatus": "none",
"cancelled": false,
"cancelledAt": "2024-05-04T09:42:00+00:00",
"cityTaxLocation": "string",
"cityTaxRate": 42.0,
"combinedTaxRate": 42.0,
"countyTaxLocation": "string",
"countyTaxRate": 42.0,
"createdAt": "2024-05-04T09:42:00+00:00",
"customerReference": "string",
"dateOrdered": {},
"deliveryExpectedAt": "2024-05-04T09:42:00+00:00",
"discounts": 0,
"districtTaxRate": 42.0,
"dropshipNotes": "string",
"dropshipProviderAddressId": 42,
"dropshipProviderId": 42,
"files": {},
"finalized": true,
"id": 42,
"intercomMessageId": "string",
"internalReference": "string",
"invalidBillingAddress": "string",
"invalidShippingAddress": false,
"inventoryStatus": "notReceived",
"invoiceProblem": {},
"invoiceStatus": "notInvoiced",
"isDropship": true,
"labelProblem": {},
"lastDropshipmentReference": 0,
"lastGoodsReceiptReference": 0,
"lastPurchaseInvoiceReference": 0,
"locked": false,
"muteError": false,
"notes": "string",
"orderProblem": {},
"orderSplitting": "group",
"orderSplittingKey": "string",
"pauseProblems": {},
"paymentExpectedAt": "2024-05-04T09:42:00+00:00",
"paymentStatus": "notPaid",
"priceListId": 42,
"purchaseId": 42,
"purchaseImportExternalId": "string",
"purchaseStatusId": 42,
"purchaseType": "replenishment",
"quantity": 0,
"receiverAddressLineOne": "string",
"receiverAddressLineTwo": "string",
"receiverCity": "string",
"receiverCountry": "string",
"receiverName": "string",
"receiverState": "string",
"receiverZip": "string",
"reference": "string",
"reminderLastSent": "2024-05-04T09:42:00+00:00",
"reminderSent": false,
"returnLabelProblem": {},
"returnStatus": "notReturned",
"saleId": 42,
"sendSource": "manual",
"shipmentRouting": "customer",
"shippingAddressLineOne": "string",
"shippingAddressLineTwo": "string",
"shippingAddressMessage": false,
"shippingCity": "string",
"shippingCountry": "string",
"shippingExpectedAt": "2024-05-04T09:42:00+00:00",
"shippingFirstName": "string",
"shippingFullName": {},
"shippingLastName": "string",
"shippingName": "string",
"shippingRateError": "value",
"shippingState": "string",
"shippingZip": "string",
"splitTag": "string",
"stateTaxLocation": "string",
"stateTaxRate": 42.0,
"subtotal": 0,
"tags": [
"string"
],
"tax": 0,
"taxCalculation": "default",
"taxIncluded": false,
"taxShipping": true,
"total": 0,
"updatedAt": "2024-05-04T09:42:00+00:00",
"userId": 42,
"vendorEndpointFormat": "json",
"vendorEndpointHeaders": {},
"vendorEndpointResponse": "string",
"vendorId": 42,
"vendorReceivedId": "string",
"vendorReceivedReference": "string",
"vendorReceivedStatus": "notSent",
"vendorReceivedStatusReason": "sent",
"vendorReference": "string",
"warehouseId": 42,
"weight": 0
}
{
"adjustmentReasonId": 42,
"adminNotes": "string",
"approved": true,
"billingAddressLineOne": "string",
"billingAddressLineTwo": "string",
"billingAddressMessage": "string",
"billingCity": "string",
"billingCountry": "string",
"billingFirstName": "string",
"billingFullName": {},
"billingLastName": "string",
"billingName": "string",
"billingState": "string",
"billingZip": "string",
"cancellationStatus": "none",
"cancelled": false,
"cancelledAt": "2024-05-04T09:42:00+00:00",
"cityTaxLocation": "string",
"cityTaxRate": 42.0,
"combinedTaxRate": 42.0,
"countyTaxLocation": "string",
"countyTaxRate": 42.0,
"createdAt": "2024-05-04T09:42:00+00:00",
"customerReference": "string",
"dateOrdered": {},
"deliveryExpectedAt": "2024-05-04T09:42:00+00:00",
"discounts": 0,
"districtTaxRate": 42.0,
"dropshipNotes": "string",
"dropshipProviderAddressId": 42,
"dropshipProviderId": 42,
"files": {},
"finalized": true,
"id": 42,
"intercomMessageId": "string",
"internalReference": "string",
"invalidBillingAddress": "string",
"invalidShippingAddress": false,
"inventoryStatus": "notReceived",
"invoiceProblem": {},
"invoiceStatus": "notInvoiced",
"isDropship": true,
"labelProblem": {},
"lastDropshipmentReference": 0,
"lastGoodsReceiptReference": 0,
"lastPurchaseInvoiceReference": 0,
"locked": false,
"muteError": false,
"notes": "string",
"orderProblem": {},
"orderSplitting": "group",
"orderSplittingKey": "string",
"pauseProblems": {},
"paymentExpectedAt": "2024-05-04T09:42:00+00:00",
"paymentStatus": "notPaid",
"priceListId": 42,
"purchaseId": 42,
"purchaseImportExternalId": "string",
"purchaseStatusId": 42,
"purchaseType": "replenishment",
"quantity": 0,
"receiverAddressLineOne": "string",
"receiverAddressLineTwo": "string",
"receiverCity": "string",
"receiverCountry": "string",
"receiverName": "string",
"receiverState": "string",
"receiverZip": "string",
"reference": "string",
"reminderLastSent": "2024-05-04T09:42:00+00:00",
"reminderSent": false,
"returnLabelProblem": {},
"returnStatus": "notReturned",
"saleId": 42,
"sendSource": "manual",
"shipmentRouting": "customer",
"shippingAddressLineOne": "string",
"shippingAddressLineTwo": "string",
"shippingAddressMessage": false,
"shippingCity": "string",
"shippingCountry": "string",
"shippingExpectedAt": "2024-05-04T09:42:00+00:00",
"shippingFirstName": "string",
"shippingFullName": {},
"shippingLastName": "string",
"shippingName": "string",
"shippingRateError": "value",
"shippingState": "string",
"shippingZip": "string",
"splitTag": "string",
"stateTaxLocation": "string",
"stateTaxRate": 42.0,
"subtotal": 0,
"tags": [
"string"
],
"tax": 0,
"taxCalculation": "default",
"taxIncluded": false,
"taxShipping": true,
"total": 0,
"updatedAt": "2024-05-04T09:42:00+00:00",
"userId": 42,
"vendorEndpointFormat": "json",
"vendorEndpointHeaders": {},
"vendorEndpointResponse": "string",
"vendorId": 42,
"vendorReceivedId": "string",
"vendorReceivedReference": "string",
"vendorReceivedStatus": "notSent",
"vendorReceivedStatusReason": "sent",
"vendorReference": "string",
"warehouseId": 42,
"weight": 0
}