Create a Test Order

Test order creation service will be used to create test orders in scenarios requested in the STAGE environment.

  • You can review the Prod-Stage Environments section to obtain test environment information.
  • 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.
  • 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.

Creating a Corporate Invoice Test Order

To create a test order with corporate invoice, the "commercial" field must be sent as true in the request body below. If the "commercial" field is true, you must fill in the "company", "invoiceTaxNumber" and "invoiceTaxOffice" fields under "invoiceAddress".

Creating a Micro Export Test Order

To create a micro export test order, the "microRegion" field must be filled in the request body below.

  • If you want to create an Azerbaijan micro export test order, the "microRegion" field must be filled in as "AZ".
  • If you want to create a micro export test order for the Gulf region, the "microRegion" field must be filled in as "GULF".

POST

Sample Service Request

{
  "customer": {
    "customerFirstName": "string",
    "customerLastName": "string"
  },
  "invoiceAddress": {
    "addressText": "string",
    "city": "string",
    "company": "string",
    "district": "string",
    "email": "string",
    "invoiceFirstName": "string",
    "invoiceLastName": "string",
    "latitude": "string",
    "longitude": "string",
    "neighborhood": "string",
    "phone": "string",  //"5301234567" ( Must contain 10 digits and only numbers )
    "postalCode": "string",
    "invoiceTaxNumber": "Firma Tax Number",
    "invoiceTaxOffice": "Firma Tax Office"
  },
  "lines": [
    {
      "barcode": "string",
      "quantity": 0,
      "discountPercentage": 50
    },
    {
      "barcode": "string",
      "quantity": 0,
      "discountPercentage": 50
    }
  ],
  "seller": {
    "sellerId": 0
  },
  "shippingAddress": {
    "addressText": "string",
    "city": "string",
    "company": "string",
    "district": "string",
    "email": "string",
    "latitude": "string",
    "longitude": "string",
    "neighborhood": "string",
    "phone": "string",
    "postalCode": "string",
    "shippingFirstName": "string",
    "shippingLastName": "string"
  },
   "commercial":true,
   "microRegion": "String"
}