API reference · Callbacks and Webhooks

Orders Webhook Payload (Complete)

POSTWebhook

Description

This is an example payload for the Orders Webhook in the complete version, containing all the details of the transaction.

The version sent, simplified or complete, is the one set up in your store's integration.

Respond 200, 201 or 202 to confirm the receipt: CWS does not read the response body. On 401, CWS gets a new token and resends the notification once; any other status, 204 included, counts as a delivery failure.

Parameters

Headers

FieldTypeDescription
Authorizationstring

CWS's credential on your endpoint: Bearer <token>, with the token CWS got from your store's authentication endpoint, or Basic <credential>, when your store's integration uses a fixed credential.

Payload

FieldTypeDescription
idinteger

Partner order id at CWS.

statusstring

Order status in the event that triggered the notification: PRE_ORDER, AWAITING_PAYMENT, PAYMENT_APPROVED, STORE_PAYMENT, READY, SHIPPED, DELIVERED, COMPLETED, CANCELED, STRAYED, RETURNED or WITHOUT_CREDIT_LIMIT. Your store only receives the statuses enabled in its integration.

subTotalstring

Partner order subtotal, as text with the currency symbol and 2 decimal places (e.g.: R$90.07).

totalstring

Partner order total, in the same format as subTotal.

dateCreatedstring

Date and time the partner order was created, in UTC−3.

lastUpdatedstring

Date and time of the partner order's last change, in the same format as dateCreated.

invoiceNotestring | null

Invoice note.

leadTimeByRequestDoneboolean | null

Whether the upon-request lead times of the order have already been filled in.

taxAmountstring | null
supplierOrderIdstring | null

Order number in your store's system.

supplierInvoiceNumberstring | null

Invoice number.

supplierInvoiceSeriestring | null

Invoice series.

supplierInvoiceKeystring | null

Invoice access key.

supplierInvoiceDatestring | null

Invoice issue date.

couponCodestring | null

Id of the order's coupon.

paymentTermsstring | null

Name of the order's payment condition.

paymentTermsIdinteger | null

Payment condition id.

paymentTermsExternalIdstring | null

Internal code of the payment condition.

storePaymentTermsstring | null

Payment in store (PAYMENT_IN_STORE): name of the payment condition.

storePaymentTermsExternalIdstring | null

Payment in store: internal code of the payment condition.

storePaymentConditionTermsstring | null
storePaymentConditionTermsExternalIdstring | null
approvalWorkflowboolean

Whether the order goes through an approval workflow. It comes false when not set.

workflowIsApprovedboolean | null

Whether the order was approved in the approval workflow.

approvalWorkflowTypesarray of object

Reasons of the order's approval workflow.

Fields in approvalWorkflowTypes[]

commission_assigned_attendant_idinteger | null

Id of the seller the commission was assigned to.

commission_assigned_attendant_codestring | null

Code of the seller the commission was assigned to.

commission_assigned_attendant_docstring | null

Document of the seller the commission was assigned to.

cartTypeNamestring | null

Custom cart that originated the order: cart type name.

cartTypeExternalIdstring | null

Custom cart that originated the order: external id of the cart type.

customCartIdinteger | null

Id of the custom cart that originated the order.

cartMetadataarray of object

Custom cart metadata: key, value and type of each.

Fields in cartMetadata[]

customerThirdPartyReferralDetailobject | null
partnerOrderAttributesarray of object

Custom attributes of the partner order.

Fields in partnerOrderAttributes[]

invoicesarray of object

Order invoices.

Fields in invoices[]

orderStatusLogarray of object

Status history of the partner order.

Fields in orderStatusLog[]

taxesobject

Order taxes.

Fields in taxes

sellerobject

Order partner (seller).

Fields in seller

bankSlipDiscountobject

Bank slip discount.

Fields in bankSlipDiscount

orderobject

Order that groups the partner orders of the same purchase.

Fields in order

paymentPartnerReceiverarray of object

Payment split among the participants.

Fields in paymentPartnerReceiver[]

customerobject

Order customer.

Fields in customer

orderReasonCanceledstring | null

Cancellation reason. It only comes in a CANCELED order with a recorded reason.

paymentsarray of object

Order payments, including those of the order that groups the purchase, without the STORE_PAYMENT ones.

Fields in payments[]

discountsarray of object

Partner order discount: one item with type total and, in value, the difference between the original amount and the subtotal (null without discount).

Fields in discounts[]

attendantobject

Order seller (attendant).

Fields in attendant

cashbackobject

Order cashback, when the loyalty program is active in the store.

Fields in cashback

deliveriesarray of object

Order deliveries.

Fields in deliveries[]

orderDocumentsarray of object

Order documents.

Fields in orderDocuments[]

customTaxarray of object

Store custom taxes charged on the partner order.

Fields in customTax[]

customPaymentsarray of object

Custom payments (CUSTOM_PAYMENT) of the partner order.

Fields in customPayments[]

orderWorkflowHistoryListarray of object

History of the order's approval workflow.

Fields in orderWorkflowHistoryList[]

braspagPaymentsarray of object

Braspag payments of the order.

Fields in braspagPayments[]

asaasPaymentsarray of object

Asaas payments of the order.

Fields in asaasPayments[]

approvalWorkflowTypes[]
FieldTypeDescription
namestring

Reason name.

cartMetadata[]
FieldTypeDescription
keystring | null
value
typestring | null
customerThirdPartyReferralDetail
FieldTypeDescription
customerNamestring | null
customerDocumentstring | null
customerReferralNamestring | null
customerReferralDocumentstring | null
typestring | null
partnerOrderAttributes[]
FieldTypeDescription
namestring | null

Attribute name.

valuestring | null

Attribute value.

invoices[]
FieldTypeDescription
urlstring | null

Invoice URL.

orderStatusLog[]
FieldTypeDescription
statusstring

Status: PRE_ORDER, AWAITING_PAYMENT, PAYMENT_APPROVED, READY, SHIPPED, DELIVERED, COMPLETED, CANCELED, STRAYED, RETURNED, STORE_PAYMENT or WITHOUT_CREDIT_LIMIT.

datestring

Date and time of the status change.

taxes
FieldTypeDescription
taxPurposestring | null

Description of the order's purpose (taxPurpose).

taxPurposeIdinteger | null

Purpose (taxPurpose) id.

stTaxstring | null

Order ST; null when zero, as text with the currency symbol and 2 decimal places.

ipiTaxstring | null

Order IPI; null when zero, as text with the currency symbol and 2 decimal places.

icmsTaxstring | null

Order ICMS; null when zero, as text with the currency symbol and 2 decimal places.

pisTaxstring | null

Order PIS; null when zero, as text with the currency symbol and 2 decimal places.

cofinsTaxstring | null

Order COFINS; null when zero, as text with the currency symbol and 2 decimal places.

totalTaxstring | null

Tax total of the partner order; null when zero, as text with the currency symbol and 2 decimal places.

seller
FieldTypeDescription
idinteger

Partner id at CWS.

namestring

Partner's corporate name.

documentstring

Partner's document.

sellerAttributesarray of object

Partner's custom attributes.

Fields in seller.sellerAttributes[]

partnerErpNamestring | null

Code of the partner's ERP integration. It only comes when the store is set up to send the ERP data in the webhook.

partnerErpWebhookUrlstring | null

Webhook URL of the partner's ERP, under the same condition as partnerErpName.

seller.sellerAttributes[]
FieldTypeDescription
namestring | null

Attribute name.

valuestring | null

Attribute value.

bankSlipDiscount
FieldTypeDescription
bankSlipDiscountPercentagenumber | null

Order's bank slip discount percentage.

bankSlipDiscountValuestring

Bank slip discount value, summed over the items it applies to, as text with the currency symbol and 2 decimal places.

order
FieldTypeDescription
idinteger

Order id.

originstring | null

MARKETPLACE or SHOP.

originStoreNamestring

Corporate name of the origin store's partner.

originStoreIdinteger

Origin store id.

originStoreSubdomainstring | null

Origin store subdomain.

orderNamestring | null
originStorePartnerIdinteger

The same value as originStoreId.

partnerOrderQuantityinteger

Number of partner orders in the order.

approvalCreditstring | null
partnerOrderListarray of object

Partner orders of the order.

Fields in order.partnerOrderList[]

isFutureSaleboolean

Whether it is a future sale (order of type ZFAN).

drivenPriceboolean | null
manualPriceboolean | null
freightDiscountTotalarray of object

Seller's discounts on the order freight.

Fields in order.freightDiscountTotal[]

order.partnerOrderList[]
FieldTypeDescription
idinteger | null

Partner order id.

statusstring | null

Partner order status: PRE_ORDER, AWAITING_PAYMENT, PAYMENT_APPROVED, READY, SHIPPED, DELIVERED, COMPLETED, CANCELED, STRAYED, RETURNED, STORE_PAYMENT or WITHOUT_CREDIT_LIMIT.

order.freightDiscountTotal[]
FieldTypeDescription
originalValuestring | null

Original freight value, as text with the currency symbol and 2 decimal places.

valueAfterDiscountstring | null

Freight value with the discount, as text with the currency symbol and 2 decimal places.

discountPercentagestring | null

Discount percentage, as text with 2 decimal places and % (e.g.: 10.00%).

discountValuestring | null

Discount value, as text with the currency symbol and 2 decimal places.

approvalNeedstring | null

Whether the discount needs approval, as text (true or false).

paymentPartnerReceiver[]
FieldTypeDescription
participantstring | null
namestring | null

Participant name.

typeReceiverstring | null
paymentFeesstring | null
splitedBystring | null
splitedPercentagenumber | null
splitedValuestring | null

Split value, as text with the currency symbol and 2 decimal places.

valuestring | null

Value, as text with the currency symbol and 2 decimal places.

customer
FieldTypeDescription
idinteger

Customer id at CWS.

namestring

Customer's name or corporate name.

contactNamestring | null

Contact name.

emailstring

Customer's login e-mail.

phonestring

Customer's phone.

typestring

pf (individual) or pj (company).

documentstring

Customer's CPF (pf) or CNPJ (pj).

stateRegistrationstring | null

State registration.

optinTrackingboolean | null

Whether the tracking opt-in is active.

trackingPhonestring | null

Tracking mobile phone.

dateCreatedstring

Date and time of the customer's registration.

customerAttributesarray of object

Customer's custom attributes.

Fields in customer.customerAttributes[]

anonymousboolean | null
CustomerRegistrationAddressobject

Customer's registration address.

Fields in customer.CustomerRegistrationAddress

customer.customerAttributes[]
FieldTypeDescription
namestring | null

Attribute name.

valuestring | null

Attribute value.

customer.CustomerRegistrationAddress
FieldTypeDescription
streetstring | null

Street.

numberstring | null

Number.

quarterstring | null

Neighborhood.

citystring | null

City.

statestring | null

State (UF).

zipcodestring | null

ZIP code (CEP).

addressTypestring | null

RESIDENTIAL or BUSINESS.

farmerStateRegistrationstring | null

Rural producer's state registration.

payments[]
FieldTypeDescription
idinteger

Payment id.

moipPaymentstring | null

Payment type at Moip; null in the other methods.

gatewaystring

Payment method: MOIP, CHECKING_ACCOUNT, DIRECT, COUPON, WEB_SERVICE, SKYHUB, MELI, STORE_PAYMENT, EBANX, ASAAS, BRASPAG, PAYMENT_IN_STORE, COMMODITY_BALANCE, COMMODITY_EXCHANGE_CAMPAIGN, EXTERNAL_ORDER or CUSTOM_PAYMENT.

paymentInstallmentsinteger | null

Number of installments.

paymentInstallmentsValuestring | null

Value of each installment, as text with the currency symbol and 2 decimal places.

multiplyDaysstring | null
multiplyValuestring | null
configMultiplystring | null
wrapperstring | null

In CHECKING_ACCOUNT, it comes CHECKING_ACCOUNT; in WEB_SERVICE, the wrapper set up for the payment; in the other methods, null.

paymentCodeIdstring | null
installmentCodeIdstring | null
creditCardIdstring | null
discounts[]
FieldTypeDescription
typestring

Always total.

valuestring | null

Discount value, as text with the currency symbol and 2 decimal places.

attendant
FieldTypeDescription
accountIdinteger | null

Seller's account id.

currentAttendanceAccountIdinteger | null
currentAttendanceIdinteger | null
attendantDocumentstring | null

Seller's document.

attendantEmailstring | null

Seller's login e-mail.

attendantCanBuyboolean | null
attendantAttributesarray of object

Seller's BP attribute, when it has one.

Fields in attendant.attendantAttributes[]

externalAuthorityobject

Seller's default partner, when it has one.

Fields in attendant.externalAuthority

attendant.attendantAttributes[]
FieldTypeDescription
namestring | null

Attribute name.

valuestring | null

Attribute value.

attendant.externalAuthority
FieldTypeDescription
storeExternalIdstring | null

External id of the partner's store.

storeIdinteger | null

Partner id.

storeNamestring | null

Partner's corporate name.

cashback
FieldTypeDescription
creditstring | null

Cashback credit, as text with the currency symbol and 2 decimal places.

debitstring | null

Cashback debit, as text with the currency symbol and 2 decimal places.

deliveries[]
FieldTypeDescription
trackingCodestring | null

Delivery tracking code.

urlTrackingCodestring | null

Delivery tracking URL.

ownCarrierCnpjstring | null

Own carrier's CNPJ.

addressobject

Delivery address.

Fields in deliveries[].address

deliveryAttributesarray of object

Custom attributes of the delivery address.

Fields in deliveries[].deliveryAttributes[]

freightobject

Delivery freight.

Fields in deliveries[].freight

productsarray of object

Delivery products.

Fields in deliveries[].products[]

deliveries[].address
FieldTypeDescription
idinteger | null

Address id.

namestring | null

Address name.

streetstring | null

Street.

numberstring | null

Number.

complementstring | null

Complement.

quarterstring | null

Neighborhood.

citystring | null

City.

statestring | null

State (UF).

zipcodestring | null

ZIP code (CEP).

typestring | null

RESIDENTIAL or BUSINESS.

stateRegistrationstring | null

Rural producer's state registration.

detailsstring | null
commentsstring | null
deliveryNotestring | null
zipcodefromstring | null
deliveryAddressCodestring | null

Delivery address code. It only comes when the store has the batch budget document split enabled.

deliveries[].deliveryAttributes[]
FieldTypeDescription
namestring | null

Attribute name.

valuestring | null

Attribute value.

deliveries[].freight
FieldTypeDescription
namestring | null

Freight name.

realNamestring | null
totalstring | null

Freight value, as text with the currency symbol and 2 decimal places.

realValuestring | null

Real freight value, as text with the currency symbol and 2 decimal places.

timeinteger | null
packingTimeinteger | null
typestring | null

Freight type: TURBO, OWN_CARRIER, WEBSERVICE, CORREIOS, DIRECT, PICKUP_IN_STORE, CDP, SERVICE, INTELIPOST, SKYHUB, MELI, MELHOR_ENVIO, EXPRESS, CAMPAIGN, PRECODE, TRUGG_HUB, FRENET, CUSTOM_FREIGHT, AUCTION_FREIGHT or EXTERNAL_ORDER.

realTypestring | null

Real freight type, in the same values as type.

intelipostQuoteIdstring | null

Quote id at Intelipost.

intelipostDeliveryMethodIdstring | null

Delivery method id at Intelipost.

intelipostDeliveryMethodExternalIdstring | null

External id of the delivery method at Intelipost.

deliveryFreightDiscountarray of object

Seller's discounts on the delivery freight.

Fields in deliveries[].freight.deliveryFreightDiscount[]

deliveries[].freight.deliveryFreightDiscount[]
FieldTypeDescription
originalValuestring | null

Original freight value, as text with the currency symbol and 2 decimal places.

valueAfterDiscountstring | null

Freight value with the discount, as text with the currency symbol and 2 decimal places.

discountPercentagestring | null

Discount percentage, as text with 2 decimal places and % (e.g.: 10.00%).

discountValuestring | null

Discount value, as text with the currency symbol and 2 decimal places.

deliveries[].products[]
FieldTypeDescription
idinteger

SKU id at CWS.

namestring

SKU name.

mfrPartCodestring | null

Manufacturer's product code.

compositionstring | null

SKU composition: UNITARY, PAIR, KIT or SET.

quantityinteger

Product quantity in the delivery.

virtualQuantityinteger | null
priceFormatedstring | null

Unit sale price, as text with the currency symbol and 2 decimal places.

pricenumber

Unit sale price, as a number.

discountnumber | null

How much the sale price (price) is below the real sale price; null when it is not.

interestnumber | null

How much the sale price (price) is above the real sale price; null when it is not.

leadTimeinteger | null
partnerOrderLineIdinteger

Partner order line id.

stockPricestring | null

Stock price, as text with the currency symbol and 2 decimal places.

realSalePricestring | null

Real sale price, as text with the currency symbol and 2 decimal places.

partnerPartCodestring | null

Product code in the partner's stock.

partnerInternalPartCodestring | null

Internal product code in the partner's stock.

categoryIdinteger | null

Id of the SKU's main category.

categoryNamestring | null

Name of the SKU's main category.

productCustomKeystring

Item key in the custom cart that originated the order; empty without a custom cart.

warehouseobject

Stock warehouse.

Fields in deliveries[].products[].warehouse

brandobject

Product manufacturer.

Fields in deliveries[].products[].brand

specialRulesarray of object

Special rules of the order items.

Fields in deliveries[].products[].specialRules[]

taxesobject

Item taxes, as numbers; null when there are none.

Fields in deliveries[].products[].taxes

attendantDiscountobject

Seller's discount on the item.

Fields in deliveries[].products[].attendantDiscount

productPriceAdjustmentsarray of object

Stock price adjustments on the item.

Fields in deliveries[].products[].productPriceAdjustments[]

deliveries[].products[].warehouse
FieldTypeDescription
idinteger | null

Warehouse id.

namestring | null

Warehouse name.

zipcodestring | null

Warehouse ZIP code (CEP).

deliveries[].products[].brand
FieldTypeDescription
idinteger

Manufacturer id at CWS.

namestring

Manufacturer's corporate name.

deliveries[].products[].specialRules[]
FieldTypeDescription
namestring | null

Rule name.

idinteger | null

Rule id.

valuestring | null

Rule value.

deliveries[].products[].taxes
FieldTypeDescription
stnumber | null

Item ST.

ipinumber | null

Item IPI.

icmsnumber | null

Item ICMS.

pisnumber | null

Item PIS.

cofinsnumber | null

Item COFINS.

totalTaxnumber | null

Item tax total.

deliveries[].products[].attendantDiscount
FieldTypeDescription
discountPercentagenumber | null

Discount percentage.

realSalePriceBeforDiscountnumber | null

Original item price, before the discount.

salePriceBeforDiscountnumber | null

Sale price before the discount.

salePriceAfterDiscountnumber | null

Sale price after the discount.

attendantDiscountValuenumber | null

Value of the seller's discount.

deliveries[].products[].productPriceAdjustments[]
FieldTypeDescription
typestring | null
beforePricenumber | null

Price before the adjustment.

afterPricenumber | null

Price after the adjustment.

adjustedValuenumber | null

Adjustment value.

referenceIdstring | null
referenceDescriptionstring | null
orderDocuments[]
FieldTypeDescription
statusstring | null

ACTIVE, INACTIVE or APPROVED.

contentTypestring | null
sourcestring | null
typestring | null
agronomicRecipeNumberstring | null
artstring | null
customTax[]
FieldTypeDescription
taxNamestring | null

Tax name.

taxValuestring | null

Charged value, as text with the currency symbol and 2 decimal places.

customPayments[]
FieldTypeDescription
paymentConditionIdinteger | null

Payment condition id.

amountnumber | null

Amount, with 2 decimal places.

additionOrDiscountParameterTypestring | null
additionOrDiscountValuenumber | null
interestOutsideConditionnumber | null
storeGatewayPaymentTypeInternalCodestring | null
storeGatewayPaymentTypeNamestring | null
customInfoOptionTitlestring | null
customInfoOptionLabelarray of string
customInfoObservationstring | null
conditionInternalCodestring | null

Internal code of the payment condition.

conditionNamestring | null

Payment condition name.

termInternalCodestring | null
termNamestring | null
receivablesarray of object
customPayments[].receivables[]
FieldTypeDescription
dueDatestring | null
amountnumber | null
orderWorkflowHistoryList[]
FieldTypeDescription
workflowNamestring | null

Approval workflow name.

orderIdstring | null

Order id, as text.

statusstring | null
profileNamestring | null

Approver's profile name.

profileLevelstring | null

Approver's profile level.

notestring | null

Approver's note.

braspagPayments[]
FieldTypeDescription
proofOfSalestring | null
authorizationCodestring | null
cardNumberstring | null
cardBrandstring | null
braspagStatusDescriptionstring | null
billingTypestring | null
amount
asaasPayments[]
FieldTypeDescription
asaasIDstring | null
asaasStatusstring | null
invoiceNumberstring | null
nossoNumerostring | null
netValue
paymentLinkstring | null
billingTypestring | null
installment
cardNumberstring | null
cardBrandstring | null
Canceled order with in-store pickup
{
  "id": 505676,
  "status": "CANCELED",
  "subTotal": "R$90.07",
  "total": "R$90.07",
  "dateCreated": "2024-04-08 13:33:27.0",
  "lastUpdated": "2024-04-08 13:35:42.0",
  "invoiceNote": null,
  "leadTimeByRequestDone": false,
  "taxAmount": null,
  "supplierOrderId": null,
  "supplierInvoiceNumber": null,
  "supplierInvoiceSerie": null,
  "supplierInvoiceKey": null,
  "supplierInvoiceDate": null,
  "couponCode": null,
  "paymentTerms": null,
  "paymentTermsId": null,
  "paymentTermsExternalId": null,
  "storePaymentTerms": null,
  "storePaymentTermsExternalId": null,
  "storePaymentConditionTerms": null,
  "storePaymentConditionTermsExternalId": null,
  "approvalWorkflow": false,
  "workflowIsApproved": false,
  "approvalWorkflowTypes": [],
  "commission_assigned_attendant_id": null,
  "commission_assigned_attendant_code": null,
  "commission_assigned_attendant_doc": null,
  "cartTypeName": null,
  "cartTypeExternalId": null,
  "customCartId": null,
  "cartMetadata": [
    {
      "key": null,
      "value": null,
      "type": null
    }
  ],
  "customerThirdPartyReferralDetail": null,
  "partnerOrderAttributes": [
    {
      "name": null,
      "value": null
    }
  ],
  "invoices": [],
  "orderStatusLog": [
    {
      "status": "PRE_ORDER",
      "date": "2024-04-08T16:33:27Z"
    },
    {
      "status": "CANCELED",
      "date": "2024-04-08T16:35:42Z"
    }
  ],
  "taxes": {
    "taxPurpose": null,
    "taxPurposeId": null,
    "stTax": null,
    "ipiTax": null,
    "icmsTax": null,
    "pisTax": null,
    "cofinsTax": null,
    "totalTax": null
  },
  "seller": {
    "id": 6255,
    "name": "Loja Exemplo — Filial Campinas",
    "document": "30.424.972/0002-55",
    "sellerAttributes": [
      {
        "name": null,
        "value": null
      }
    ]
  },
  "bankSlipDiscount": {
    "bankSlipDiscountPercentage": null,
    "bankSlipDiscountValue": "R$0.00"
  },
  "order": {
    "id": 487120,
    "origin": "MARKETPLACE",
    "originStoreName": "Loja Exemplo",
    "originStoreId": 1201,
    "originStoreSubdomain": "lojaexemplo",
    "orderName": null,
    "originStorePartnerId": 1201,
    "partnerOrderQuantity": 1,
    "approvalCredit": null,
    "partnerOrderList": [
      {
        "id": 505676,
        "status": "CANCELED"
      }
    ],
    "isFutureSale": false,
    "drivenPrice": false,
    "manualPrice": false,
    "freightDiscountTotal": []
  },
  "paymentPartnerReceiver": [],
  "customer": {
    "id": 1637173,
    "name": "Ana Paula Ribeiro",
    "contactName": "Ana Paula Ribeiro",
    "email": "ana.ribeiro@exemplo.com.br",
    "phone": "(11) 98765-4321",
    "type": "pf",
    "document": "466.935.373-08",
    "stateRegistration": null,
    "optinTracking": true,
    "trackingPhone": "(11) 98765-4321",
    "dateCreated": "2024-03-02T13:10:05Z",
    "customerAttributes": [
      {
        "name": null,
        "value": null
      }
    ],
    "anonymous": false,
    "CustomerRegistrationAddress": {
      "street": "Avenida Paulista",
      "number": "1578",
      "quarter": "Bela Vista",
      "city": "São Paulo",
      "state": "SP",
      "zipcode": "01310-100",
      "addressType": "RESIDENTIAL",
      "farmerStateRegistration": null
    }
  },
  "orderReasonCanceled": null,
  "payments": [
    {
      "id": 305665,
      "moipPayment": null,
      "gateway": "BRASPAG",
      "paymentInstallments": 1,
      "paymentInstallmentsValue": "R$90.07",
      "multiplyDays": null,
      "multiplyValue": null,
      "configMultiply": null,
      "wrapper": null,
      "paymentCodeId": null,
      "installmentCodeId": null,
      "creditCardId": null
    }
  ],
  "discounts": [
    {
      "type": "total",
      "value": "R$7.83"
    }
  ],
  "attendant": {
    "accountId": null,
    "currentAttendanceAccountId": null,
    "currentAttendanceId": null,
    "attendantDocument": null,
    "attendantEmail": null,
    "attendantCanBuy": null,
    "attendantAttributes": [
      {
        "name": null,
        "value": null
      }
    ]
  },
  "cashback": {
    "credit": null,
    "debit": null
  },
  "deliveries": [
    {
      "trackingCode": null,
      "urlTrackingCode": null,
      "ownCarrierCnpj": null,
      "address": {
        "id": 4470702,
        "name": "Endereço de entrega",
        "street": "Avenida Paulista",
        "number": "1578",
        "complement": "Conjunto 42",
        "quarter": "Bela Vista",
        "city": "São Paulo",
        "state": "SP",
        "zipcode": "01310-100",
        "type": "RESIDENTIAL",
        "stateRegistration": null,
        "details": null,
        "comments": null,
        "deliveryNote": null,
        "zipcodefrom": null
      },
      "deliveryAttributes": [
        {
          "name": null,
          "value": null
        }
      ],
      "freight": {
        "name": "Retirada na Loja",
        "realName": "Retirada na Loja",
        "total": "R$0.00",
        "realValue": "R$0.00",
        "time": null,
        "packingTime": null,
        "type": "PICKUP_IN_STORE",
        "realType": "PICKUP_IN_STORE",
        "intelipostQuoteId": null,
        "intelipostDeliveryMethodId": null,
        "intelipostDeliveryMethodExternalId": null,
        "deliveryFreightDiscount": []
      },
      "products": [
        {
          "id": 500101,
          "name": "Produto Exemplo A",
          "mfrPartCode": "FE-500101",
          "composition": "UNITARY",
          "quantity": 1,
          "virtualQuantity": 0,
          "priceFormated": "R$97.90",
          "price": 97.9,
          "discount": null,
          "interest": null,
          "leadTime": 0,
          "partnerOrderLineId": 4490101,
          "stockPrice": "R$97.90",
          "realSalePrice": "R$97.90",
          "partnerPartCode": "SKU-A-001",
          "partnerInternalPartCode": null,
          "categoryId": null,
          "categoryName": null,
          "productCustomKey": "",
          "warehouse": {
            "id": 1001,
            "name": "Depósito Central",
            "zipcode": "01310-100"
          },
          "brand": {
            "id": 4460101,
            "name": "Fabricante Exemplo"
          },
          "specialRules": [
            {
              "name": null,
              "id": null,
              "value": null
            }
          ],
          "taxes": {
            "st": null,
            "ipi": null,
            "icms": null,
            "pis": null,
            "cofins": null,
            "totalTax": null
          },
          "attendantDiscount": {
            "discountPercentage": null,
            "realSalePriceBeforDiscount": 97.9,
            "salePriceBeforDiscount": null,
            "salePriceAfterDiscount": null,
            "attendantDiscountValue": null
          },
          "productPriceAdjustments": []
        }
      ]
    }
  ],
  "orderDocuments": [
    {
      "status": null,
      "contentType": null,
      "source": null,
      "type": null,
      "agronomicRecipeNumber": null,
      "art": null
    }
  ],
  "customTax": [
    {
      "taxName": null,
      "taxValue": null
    }
  ],
  "customPayments": [],
  "orderWorkflowHistoryList": [
    {
      "workflowName": null,
      "orderId": null,
      "status": null,
      "profileName": null,
      "profileLevel": null,
      "note": null
    }
  ],
  "braspagPayments": [],
  "asaasPayments": []
}

Expected response

  • 200

    Confirm with 200, 201 or 202.