cURL
curl --request PATCH \ --url http://{defaultHost}/api/v2/platform/store_credit_types/{id} \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "store_credit_type": { "name": "refunded", "priority": 1 } }'
{ "data": { "id": "9", "type": "store_credit_type", "attributes": { "name": "default", "priority": 1, "created_at": "2022-11-08T19:35:37.442Z", "updated_at": "2022-11-08T19:35:37.670Z" } } }
Updates a Store Credit Type
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Record updated
The response is of type object.
object
Was this page helpful?