Skip to content

Instantly share code, notes, and snippets.

@awilliams88
Last active September 23, 2019 06:38
Show Gist options
  • Save awilliams88/293f7d7f01129ea30aac4d8f2ff4a9c3 to your computer and use it in GitHub Desktop.
Save awilliams88/293f7d7f01129ea30aac4d8f2ff4a9c3 to your computer and use it in GitHub Desktop.
Checkout Error
Request URL: https://staging-api.supermercato24.it/sm/api/v3/locations/2325/stores/2837/checkout
Request Method: POST
Status Code: 400 Bad Request
Remote Address: 62.4.1.208:443
Referrer Policy: no-referrer-when-downgrade
RESPONSE HEADER
Access-Control-Allow-Headers: Origin,Content-Type,Accept,Accept-Language,Authorization,X-Request-With,User-Session,x-s24-client,x-s24-country
Access-Control-Allow-Methods: POST,GET,OPTIONS,PUT,DELETE
Access-Control-Allow-Origin: *
Cache-Control: private, must-revalidate
Connection: keep-alive
Content-Type: application/json
Date: Mon, 23 Sep 2019 06:22:37 GMT
expires: -1
pragma: no-cache
Server: nginx
Transfer-Encoding: chunked
User-Session: 09f19b0a-61a3-55b6-9288-aa4168d2d525
REQUEST HEADER
Accept: application/json, text/plain, */*
Authorization: Bearer d86d247522ad90b69825e4c784d8131a65b79281
Content-Type: application/json;charset=UTF-8
Origin: https://staging.supermercato24.it
Referer: https://staging.supermercato24.it/s
Sec-Fetch-Mode: cors
User-Agent: Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Mobile Safari/537.36
X-S24-Client: website/2.0.0-alpha.1
REQUEST PAYLOAD
{"delivery_date":"2019-09-23","delivery_time":"10:00:00","delivery_cost":8.4,"delivery_cost_variation":0,"delivery_cost_variation_badge":null,"delivery_address":"176737","billing_address":null,"payment_method":"cash","payment_card_id":null,"discount_code":null,"notes":"","payment_intent_id":null}
RESPONSE
{"error":"The cart.1.note must be a string.","errors":{"cart.1.note":"The cart.1.note must be a string.","cart.3.note":"The cart.3.note must be a string."}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment