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
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"
}
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Was this page helpful?