Ir para o conteúdo

Pedido de Venda (Sales Order)

O pedido de venda será enviado ao Insight sempre que for cadastrado no FoccoERP.

Obs: Para que seja possível realizar o envio, é necessário que no Insight o tipo do pedido enviado possua a linha 'STD' vinculada. Ex:

Dados de envio do Pedido de Venda

  • Endpoint: api/focco/v1/sales-orders
  • Exemplo de Payload:
{
    "salesOrder": {
        "pedidoVendaId": 52526,
        "description": null,
        "orderDate": "2024-08-13",
        "requestDate": "2024-08-13",
        "orderTypeCode": "PDV",
        "paymentTermsCode": "Net 30",
        "plantCode": "PLA1",
        "currencyCode": "BRL",
        "taxCode": "NOTAX",
        "netPrice": "1.0000",
        "exchangeRate": null,
        "netPriceBase": "0.0000",
        "marketCode": "World",
        "carrierCode": "S6",
        "orderNo": "0",
        "orderNoForeign": "PDV1066",
        "organization": {
            "address": [
                {
                    "type": "FAT",
                    "locationCode": "1",
                    "locationName": "BIGFER IND COM DE FERR LTDA",
                    "address1": "Rua Luiz Antunes, 1182",
                    "city": "FARROUPILHA",
                    "state": "RS",
                    "zip": "95180280",
                    "country": "BR",
                    "phone": null,
                    "fax": null,
                    "isDefault": "1",
                    "effective": "2008-09-30",
                    "inactive": "2079-06-06",
                    "language": "BRL",
                    "notes": null,
                    "notificationRequired": "0",
                    "carrierCode": "S3",
                    "shipmentModeCode": "FT",
                    "taxCode": "US - States"
                },
                {
                    "type": "ENT",
                    "locationCode": "1",
                    "locationName": "BIGFER IND COM DE FERR LTDA",
                    "address1": "Rua Luiz Antunes, 1182",
                    "city": "FARROUPILHA",
                    "state": "RS",
                    "zip": "95180280",
                    "country": "BR",
                    "phone": null,
                    "fax": null,
                    "isDefault": "1",
                    "effective": "2008-09-30",
                    "inactive": "2079-06-06",
                    "language": "BRL",
                    "notes": null,
                    "notificationRequired": "0",
                    "carrierCode": "S3",
                    "shipmentModeCode": "FT",
                    "taxCode": "US - States"
                }
            ],
            "note": null,
            "organizationCode": "C2",
            "name": null,
            "type": null,
            "effective": null,
            "inactive":