OverrideCart API is throwing HTTP responseCode: 403 responseBody :{“error”:“Invalid signature”}
This is the payload that I am sending
Override Cart payload: {
“cartId”: “6528f3fc278c967e03970b51”,
“paymentMode”: “COD”,
“merchantCode”: “COD”,
“paymentIdentifier”: “COD”,
“currencyCode”: “INR”,
“aggregator”: “FYND”,
“orderType”: “HomeDelivery”,
“cartItems”: [
{
“size”: “OS”,
“priceMarked”: 500.0,
“amountPaid”: 500.0,
“itemId”: 7500891,
“discount”: 0.0,
“priceEffective”: 500.0
}
]
}
@Vidit_Gupta the payload you are passing in the request is incorrect.
Please refer to this doc “Create Fynd order with overriding cart details | Fynd Partners Help Center”
the key’s name passed in the request should be according to the doc.
Also You can refer to this request payload.
{
"cart_id": "654a1ce15c0166876d9985c1",
"payment_mode": "JIOPP",
"merchant_code": "JIOPP",
"payment_identifier": "JIOPP",
"currency_code": "INR",
"aggregator": "Jio",
"order_type": "PickAtStore",
"cart_items": [
{
"size": "OS",
"price_marked": 449.0,
"amount_paid": 161.0,
"item_id": 7502530,
"discount": 289,
"price_effective": 161.0,
}
]
}