question

sid avatar image
sid asked sid published

create custom order doesn't take customer and line item object when i send request

i send this type of object in CREATE CUSTOM ORDER on https://sandbox.dev.clover.com/v3/merchants/merchantsID/orders

{

"orderType": {

"taxable": "false",

"isDefault": "false",

"filterCategories": "false",

"isHidden": "false",

"isDeleted": "false",

"id": "933GNCVHQFM4T",

"labelKey": "dine-in",

"label": "dine-in"

},

"taxRemoved": "false",

"currency": "USD",

"customers": [

{

"merchant": {

"id": "PKST1890A6671"

},

"id": "B0852SWPKDV3C",

"firstName": "Test",

"lastName": "Developer",

"addresses": [

{

"address1": "15A Avenue B",

"city": "Helmetta",

"country": "United States",

"state": "New Jersey",

"zip": "08828"

}

],

"emailAddresses": [

{

"emailAddress": "siddharthrangani2001@gmail.com"

}

],

"phoneNumbers": [

{

"phoneNumber": "9313112127"

}

]

}

],

"total": 1000,

"paymentState": "PAID",

"testMode": true,

"lineItems": [

{

"item": {

"id": "C5QDGG3785RZ2"

},

"printed": "false",

"exchanged": "false",

"refunded": "false",

"refund": {

"transactionInfo": {

"isTokenBasedTx": "false",

"emergencyFlag": "false"

}

},

"isRevenue": "false",

"name": "pizza",

"price": 1000

}

]

}

'

but when i send this request it will give only

{"href": "https://sandbox.dev.clover.com/v3/merchants/PKST1890A6671/orders/ZG761A2N9S12P", "id": "ZG761A2N9S12P", "currency": "USD", "orderType": {"id": "933GNCVHQFM4T"}, "taxRemoved": false, "isVat": false, "manualTransaction": false, "groupLineItems": true, "testMode": false, "createdTime": 1712063787000, "clientCreatedTime": 1712063787000, "modifiedTime": 1712063787000}

why it can't take customer details and line item in create custom order API?

OrdersREST APILineItemsModifiers
1 comment
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

bryanvargas avatar image bryanvargas ♦♦ commented ·
0 Likes 0 ·

0 Answers

·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community