Skip to content

    We're getting a 400 error on this request, what could be the cause?

    URL: https://xpay.nexigroup.com/api/phoenix-0.0/psp/api/v1//orders/hpp

    Code example

    Request
    
    {
        "order": {

    The error in this case was caused by the absence of the paymentSession parameter, which, as indicated in the technical specifications, is a mandatory parameter.

    This type of error is returned when the sent request is not correct, such as in this case where it was missing some mandatory parameters.

    Here is an example of a request body composed in the correct way:

    Code example

    {
        "order": {
            "orderId": "1677584028",
            "amount": "50000",

    Section of the specifications describing the API orders/hpp