Ao tentar incluir uma ordem paga externamente usando o endpoint https://{accountName}.{environment}.com.br/api/fulfillment/pvt/orders sigo recebendo um erro interno sem explicação.
Erro 500:
{
"error": {
"code": "001",
"message": "Object reference not set to an instance of an object.",
"exception": null
},
"operationId": "b6255536-e43d-4a56-a415-a0991abc59df",
"fields": {}
}
Já verifiquei os parâmetros algumas vezes pra garantir que o payload está enviando os campos obrigatórios e mesmo assim o erro persiste.
Exemplo de Payload:
{
"marketplaceOrderId": "123456789",
"marketplaceServicesEndpoint": "https://exampleseller.marketplaceservices.com",
"marketplacePaymentValue": 100,
"items": [
{
"id": "123",
"quantity": 1,
"seller": "1",
"commission": 10,
"freightCommission": 10,
"price": 2499,
"bundleItems": [
{
"type": "type-example",
"id": 1034,
"name": "name-example",
"price": 199
},
{
"type": "type-example",
"id": 1034,
"name": "name-example",
"price": 199
}
],
"itemAttachment": {
"name": "name-example",
"content": "content-example"
},
"attachments": [
"ut minim Lorem irure",
"aliqua voluptate qui nostrud"
],
"priceTags": [
{
"identifier": "1234abc-5678b-1234c",
"isPercentual": false,
"name": "discount@name-1234abc-5678b-1234c",
"rawValue": -12,
"value": -1200
},
{
"identifier": "1234abc-5678b-1234c",
"isPercentual": false,
"name": "discount@name-1234abc-5678b-1234c",
"rawValue": -12,
"value": -1200
}
],
"measurementUnit": "g",
"unitMultiplier": 1,
"isGift": false
},
{
"id": "123",
"quantity": 1,
"seller": "1",
"commission": 10,
"freightCommission": 10,
"price": 2499,
"bundleItems": [
{
"type": "type-example",
"id": 1034,
"name": "name-example",
"price": 199
},
{
"type": "type-example",
"id": 1034,
"name": "name-example",
"price": 199
}
],
"itemAttachment": {
"name": "name-example",
"content": "content-example"
},
"attachments": [
"Lorem cillum sint",
"culpa id"
],
"priceTags": [
{
"identifier": "1234abc-5678b-1234c",
"isPercentual": false,
"name": "discount@name-1234abc-5678b-1234c",
"rawValue": -12,
"value": -1200
},
{
"identifier": "1234abc-5678b-1234c",
"isPercentual": false,
"name": "discount@name-1234abc-5678b-1234c",
"rawValue": -12,
"value": -1200
}
],
"measurementUnit": "g",
"unitMultiplier": 1,
"isGift": false
}
],
"clientProfileData": {
"email": "customer@examplemail.com",
"firstName": "first-name",
"lastName": "last-name",
"documentType": "cpf",
"document": "123456789",
"phone": "+55110988887777",
"corporateName": "company-name",
"tradeName": "trade-name",
"corporateDocument": "12345678000100",
"stateInscription": "12345678",
"corporatePhone": "+551100988887777",
"isCorporate": false
},
"shippingData": {
"address": {
"addressType": "residential",
"receiverName": "receiver-name",
"postalCode": "12345000",
"city": "Rio de Janeiro",
"state": "Rio de Janeiro",
"country": "BRA",
"street": "Praia de Botafogo",
"number": "300",
"addressId": "Home",
"neighborhood": "Botafogo",
"complement": "3rd floor",
"reference": "Grey building",
"geoCoordinates": [
"00.00000",
"00.00000"
]
},
"logisticsInfo": [
{
"itemIndex": 0,
"selectedSla": "Express",
"price": 1099,
"lockTTL": "8d",
"shippingEstimate": "7d",
"deliveryWindow": {
"startDateUtc": "sed sint enim adipisicing ea",
"endDateUtc": "s",
"price": 0,
"lisPrice": 0,
"tax": 0
}
},
{
"itemIndex": 1,
"selectedSla": "Express",
"price": 1099,
"lockTTL": "8d",
"shippingEstimate": "7d",
"deliveryWindow": {
"startDateUtc": "minim culpa",
"endDateUtc": "laborum",
"price": 0,
"lisPrice": 0,
"tax": 0
}
}
],
"updateStatus": "commodo"
},
"isCreatedAsync": false,
"paymentData": null,
"marketingData": {
"utmSource": "Facebook",
"utmMedium": "CPC",
"utmCampaign": "Black friday",
"utmiPage": "utmi_page-example",
"utmiPart": "utmi_part-exmaple",
"utmiCampaign": "utmi_campaign-exmaple"
},
"openTextField": "open-text-example"
}
Alguém mais está passando por isso?