Hi I am getting error status code 405 while sending PATCH request for updating in app purchases with using appstore connect rest api. However I can create an in app purchase with rest api but I cant localize and update them. I tried with scopes in JWT and without scopes in JWT but result is same. Can you help me about that?
Getting Error status code 405 while Sending PATCH request for updating in app purchases
Also I tried to create more than one in app purchase with a payload like that:
{
"data": [{
"type": "inAppPurchases",
"attributes": {
"name": "dummy-353535",
"productId": "DUMMY353535",
"inAppPurchaseType": "CONSUMABLE",
"reviewNote": "TEST",
"availableInAllTerritories": true
},
"relationships": {
"app": {
"data": {
"type": "apps",
"id": "<APP ID>"
}
}
}
},
{
"type": "inAppPurchases",
"attributes": {
"name": "dummy-663435",
"productId": "dummy663435",
"inAppPurchaseType": "CONSUMABLE",
"reviewNote": "Trying to create more than one dummy",
"availableInAllTerritories": true
},
"relationships": {
"app": {
"data": {
"type": "apps",
"id": "<APP ID>"
}
}
}
}]
}
but I get an error like that:
{
"errors": [
{
"id": "ffc324af-1a66-4ea8-a086-ba41ee7069de",
"status": "422",
"code": "ENTITY_UNPROCESSABLE",
"title": "The request entity is not a valid request document object",
"detail": "Unexpected or invalid value at 'data'.",
"meta": {
"position": {
"row": 2,
"column": 11
}
}
}
]
}
Can you help me about that too? I am sending requests with postman by the way