Skip to content

Improve error handling through Order Notes #10

@WiredWonder

Description

@WiredWonder

Hi guys,

Is it possible to improve error handling by adding the API error response into the order note when a booking fails?

eg.

"responseData":{"error":"invalid","error_description":"The details provided are invalid","delivery_date":["Cannot be a past date on creation","Cannot be a past date"],"delivery_window":["Cannot be in the past"]}

My fulfilment staff could not work out why the order would not push across but I managed to find the reason by trawling through the logs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions