Creation of Test Orders
The creation of test orders can be done through Postman.
warning
Warning!
The Sandbox Environment needs to be set up for the creation process to work properly.
Using Postman, execute a POST request on the "/orders" endpoint, sending the JSON below, updating the values of partnerId, createdAt, paymentDate, in addition to adapting the JSON values price for the data that fits your published product offer.
URL: http://sandbox-api.anymarket.com.br/v2/orders
Request Header:
| Key | Value |
|---|---|
| gumgaToken | Your gumgaToken |
| Content-Type | application/json |
JSON:
{
"accountName": "ECOMMERCE",
"marketPlaceId": "10000{{$randomInt}}",
"marketPlaceNumber": "10000{{$randomInt}}",
"marketPlace": "ECOMMERCE",
"createdAt": "2018-01-02T09:01:08-03:00",
"paymentDate": "2018-01-02T09:02:03-03:00",
"transmissionStatus": "OK",
"status": "PAID_WAITING_SHIP",
"marketPlaceStatus": "PAID_WAITING_SHIP",
"discount": 0,
"freight": 0,
"interestValue": 0,
"gross": 310,
"total": 310,
"shipping": {
"city": "Maringá",
"state": "PR",
"country": "BR",
"address": "Rua Emiliano Perneta -1010 - 42 andar – Joao Bosco",
"number": "1010",
"neighborhood": "Joao Bosco",
"street": "Rua Emiliano Perneta",
"comment": "42 andar",
"zipCode": "10120-080"
},
"billingAddress": {
"city": "Maringá",
"state": "PR",
"country": "Brasil",
"number": "99",
"neighborhood": "Alvorada",
"street": "Rua Das Amélias",
"comment": "casa",
"zipCode": "87020035"
},
"buyer": {
"name": "Rick Sanches",
"email": "email322@email3.com",
"document": "57814258707",
"documentType": "CPF",
"phone": "(43) 99927-4719",
"documentNumberNormalized": "12673565370"
},
"payments": [
{
"method": "Cartão de Crédito",
"value": 310
}
],
"items": [
{
"sku": {
"title": "CHEVROLET IMPALA 1967",
"partnerId": "impala67"
},
"amount": 1,
"unit": 310,
"gross": 310,
"total": 310,
"discount": 0
}
]
}