My Products
Help
Anonymous
Not applicable

Unable to set soShippingContact, soBillingAddress etc. on POST to /v2/salesorder

by Anonymous

Hi, 

I want the contact and address for the order to appear in the GUI, but nothing is set from the following POST:

 

{
    "orderType": {
        "value": "SO"
    },
    "currency": {
        "value": "NOK"
    },
    "date": {
        "value": "2021-08-23T11:09:41Z"
    },
    "customer": {
        "value": "abc12"
    },
    "soShippingContact": {
        "value": {
            "overrideContact": {
                "value": true
            },
            "name": {
                "value": "Test Testesen"
            },
            "email": {
                "value": "test@komplettnettbutikk.no"
            },
            "phone1": {
                "value": "40404040"
            }
        }
    },
    "soBillingContact": {
        "value": {
            "overrideContact": {
                "value": true
            },
            "name": {
                "value": "Test testesen"
            },
            "email": {
                "value": "test@komplettnettbutikk.no"
            },
            "phone1": {
                "value": "40404040"
            }
        }
    },
    "soBillingAddress": {
        "value": {
            "addressLine1": {
                "value": "Adressevegen 3"
            },
            "addressLine2": {
                "value": "Oppgang 123"
            },
            "postalCode": {
                "value": "7604"
            },
            "city": {
                "value": "LEVANGER"
            },
            "countryId": {
                "value": "NO"
            },
            "overrideAddress": {
                "value": true
            }
        }
    },
    "soShippingAddress": {
        "value": {
            "addressLine1": {
                "value": "Adressevegen 3"
            },
            "addressLine2": {
                "value": "Oppgang 123"
            },
            "postalCode": {
                "value": "7604"
            },
            "city": {
                "value": "LEVANGER"
            },
            "countryId": {
                "value": "NO"
            },
            "overrideAddress": {
                "value": true
            }
        }
    },
    "lines": [
        {
            "value": {
                "operation": "Insert",
                "inventoryNumber": {
                    "value": "4"
                },
                "quantity": {
                    "value": 1
                },
                "unitPrice": {
                    "value": 200
                },
                "lineDescription": {
                    "value": " TEst"
                },
                "unitCost": {
                    "value": 100
                },
                "discountAmount": {
                    "value": 16
                },
                "taxCategory": {
                    "value": 3
                }
            }
        } 
    ],
    "orderNumber": {
        "value": "HEMETBKBM"
    },
    "note": {
        "value": "Nettbutikkordre med ID 48 og referanse HEMETBKBM."
    },
    "description": {
        "value": "Nettbutikkordre med ID 48 og referanse HEMETBKBM."
    },
    "customerRefNo": {
        "value": 48
    }
}

 

1 REPLY 1
Yıldırım
VISMA

by Yıldırım (Updated ‎24-08-2021 11:31 by Yıldırım VISMA )

Hello, 

 

we're unable to reproduce the mentioned problem. We can override the values with the POST Sales Order request by using both V1 and V2 Endpoints. (soShippingAddress, soBillingAddress, soShippingContact, soBillingContact)

so.png

 


@Anonymous wrote:

I want the contact and address for the order to appear in the GUI, but nothing is set from the following POST

 

  • What value has been set on the related address / contact fields instead ? 
  • Are you able to manually set the same values in the UI that has sent via the API ?
  • Do you have validation in the company ? In that case Postcode etc should exists in the system. Otherwise you can check disabling  the validations for those fields in the Financials UI.

ScreenId=CS20400S&CountryID=NO

validation.png