POST Create Order External

Creates a new order in the system using an external reference from a sales channel.

Headers

NameRequiredDescription
Content-TypeYesMust be application/json.
AuthorizationYesBearer token for authentication.

Request Body

Root Fields

FieldTypeRequiredDescription
ClientIdstringYesClient identifier in the platform.
ChannelstringYesIdentifies the pre-configured order pipeline by the onboarding team.
ExternalIdstringYesUnique and immutable order code in the sales channel.
SellerobjectYesStore identification. Either Cnpj or PointSaleId must be provided.
BuyerobjectYesCustomer billing information.
DeliveryAddressobjectConditionalRequired when IsDelivery = true. Shipping address for the order.
ItemsarrayYesList of items in the order.
IsDeliverybooleanYestrue for delivery, false for in-store pickup.
FreightobjectYesFreight details for shipping and display.
PaymentInfoobjectYesPayment details and method.

Seller Object

FieldTypeRequiredDescription
CnpjstringYesStore CNPJ.
PointSaleIdstringOptionalStore point-of-sale identifier.

Buyer Object

FieldTypeRequiredDescription
CpfstringYesCustomer CPF.
EmailstringYesCustomer email address.
FullNamestringYesCustomer full name.
PhoneNumberstringYesCustomer phone number.
AddressobjectYesBilling address details.

Address Object:

FieldTypeRequiredDescription
ZipCodestringYesPostal code.
StreetstringYesStreet name.
NumberstringYesStreet number.
NeighborhoodstringYesNeighborhood name.
CitystringYesCity name.
StatestringYesState abbreviation (e.g., SP).

Items Array

Each item must contain:

FieldTypeRequiredDescription
SkuCodestringYesSKU identifier.
ProductCodestringYesGroup identifier for the SKU.
QuantityintegerYesQuantity purchased.
UnitPricenumberYesPrice per unit without discount.
DiscountPricenumberYesDiscount amount applied.

Freight Object

FieldTypeRequiredDescription
AmountnumberYesFreight cost.
DeliveryTimeintegerYesDelivery time in days.
ReferencestringYesCarrier identifier for integrations.
DescriptionstringYesDisplay name for the carrier (shown to operator).

PaymentInfo - Object from PaymentList Array

Payment method depends on PaymentMethod.Type:

TypeMethodAdditional Fields Required
7Payment LinkNone
1Credit CardBrand, AcquirerMessage, AcquirerApprovalCode, QuantityInstallments
6PIXAcquirerMessage, AcquirerApprovalCode

Common Fields:

FieldTypeRequiredDescription
AmountnumberYesPayment amount.
PaymentStatusintegerOptionalPayment status code.
QuantityInstallmentsintegerConditionalRequired for installment payments.
AcquirerMessagestringConditionalMessage from the acquirer.
AcquirerApprovalCodestringConditionalApproval code from the acquirer.

PaymentMethod Object:

FieldTypeRequiredDescription
TypeintegerYesPayment type identifier.
BrandstringConditionalCard brand when Type = 1.
InfostringOptionalAdditional payment information.
ModalitystringOptionalPayment modality code.

Example Request

{
    "ClientId": "qaapp",
    "Channel": "ecommerce",
    "ExternalId": "NEOMODE-1",
    "Seller": { "Cnpj": "04109169000135" },
    "Buyer": {
        "Cpf": "55570403906",
        "Email": "[email protected]",
        "FullName": "Implantacao Neomode",
        "PhoneNumber": "41999999999",
        "Address": {
            "ZipCode": "04321130",
            "Street": "Rua Farjalla Koraicho",
            "Number": "654",
            "Neighborhood": "Vila Parque Jabaquara",
            "City": "São Paulo",
            "State": "SP"
        }
    },
    "DeliveryAddress": {
        "ZipCode": "04321130",
        "Street": "Rua Farjalla Koraicho",
        "Number": "654",
        "Neighborhood": "Vila Parque Jabaquara",
        "City": "São Paulo",
        "State": "SP"
    },
    "Items": [
        {
            "SkuCode": "1",
            "ProductCode": "1",
            "Quantity": 1,
            "UnitPrice": 19.9,
            "DiscountPrice": 10
        }
    ],
    "IsDelivery": true,
    "Freight": {
        "Amount": 1.1,
        "DeliveryTime": 1,
        "Reference": "SEDEX",
        "Description": "SEDEX",
        "CalculationKey": null
    },
    "PaymentList": [ {
        "Amount": 21,
        "PaymentMethod": {
            "Type": 7
        }
    }]
}

Response

201 Created
Order successfully created.

400 Bad Request
Validation errors or invalid parameters. May include a detail or errors field.

401 Unauthorized
Invalid or missing authentication token.

500 Internal Server Error
Unexpected server error.

Language
Credentials
OAuth2
URL