Hi,
I am currently trying to edit a checkout through the Admin API in my private app, but I keep getting an error. For testing purposes, I wanted to first edit only the first and last name in the shipping address. Later on, I would like to edit the price of products (line items) in the checkout.
This is the endpoint: https://.myshopify.com/admin/api/2023-01/checkouts/.json
And this is the body of my PUT request:
{
"checkout": {
"email": "max.mustermann@mail.de",
"token": "<TOKEN>",
"shipping_address": {
"first_name": "Max",
"last_name": "Mustermann"
}
}
}
This is the response: 404
{
"errors": "Not Found"
}
I am properly authenticated, otherwise I would have received a different error message.
For testing, I have enabled all the scopes listed here while installing my app in the shop: https://shopify.dev/docs/api/usage/access-scopes
And I followed the documentation here: Checkout - REST
What am I doing wrong? All other PUT requests to other endpoints work without any problems.