10. Create a Test Order
Test order creation service will be used to create test orders in scenarios requested in the STAGE environment for the regions SA and AE.
- SellerID must be sent in the Header. Its value should be the sellerId of the test seller you used.
- You need to use basic authentication with the sellerId you sent in the header.
- You need to send "storeFrontCode" as Header Parameter.
- After the request is sent, "orderNumber" will be returned to you in the response. With this order number, you can perform the transactions you request.
- Products should be approved.
- "discountPercentage" field can be use to simulate the seller discounts. If "discountPercentage" send as 0, it will be ignored.
POST
Sample Service Request
{
"customer": {
"customerFirstName": "CustomerName",
"customerLastName": "CustomerSurname"
},
"invoiceAddress": {
"addressText": "String",
"city": "İstanbul",
"company": "String",
"district": "String",
"email": "[email protected]",
"invoiceFirstName": "CustomerName",
"invoiceLastName": "CustomerSurname",
"latitude": "12.12",
"longitude": "13.13",
"neighborhood": "String",
"phone": "1231231212",
"postalCode": "34000"
},
"lines": [
{
"barcode": "00005678",
"quantity": 1,
"discountPercentage": 20
},
{
"barcode": "00001234",
"quantity": 2,
"discountPercentage": 50
}
],
"shippingAddress": {
"addressText": "String",
"city": "String",
"company": "String",
"district": "String",
"email": "[email protected]",
"latitude": "12.12",
"longitude": "13.13",
"neighborhood": "String",
"phone": "1231231212",
"postalCode": "34000",
"shippingFirstName": "CustomerName",
"shippingLastName": "CustomerSurname"
}
}Updated 11 days ago