Hi I am trying to create an order using Rest Admin API. Order creation was success but didn’t receive payment URL for the order in response.
Following API are used.
order API
POST : https://shop.myshopify.com/admin/api/2023-04/orders.json
BODY:
{
"order": {
"line_items": [
{
"variant_id": 44598046785811,
"quantity": 1
}
],
"customer": {
"email": "madhana.sohan@gmail.com"
},
"financial_status": "pending"
}
}
Status 201 created.
Checkout API
POST https://shop.myshopify.com/admin/api/2023-04/checkouts.json
BODY:
{
"checkout": {
"line_items": [
{
"variant_id": 44598046785811,
"quantity": 1
}
],
"email": "dummy@email.com",
"presentment_currency": "INR"
}
}
RESPONSE
{
"errors": "[API] This action requires merchant approval for write_checkouts scope."
}
So tried finding write_checkouts scope in Admin API configuration of my private app. But that scope is not listed in Admin API.
Payment Gateway used: Razor pay Secure.
Please suggest.