curl --request PATCH \
--url http://{defaultHost}/api/v2/platform/store_credit_categories/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"store_credit_category": {
"name": "refunded"
}
}
'{
"data": {
"id": "9",
"type": "store_credit_category",
"attributes": {
"name": "refunded",
"created_at": "2022-11-08T19:35:34.884Z",
"updated_at": "2022-11-08T19:35:35.112Z"
}
}
}Updates a Store Credit Category
curl --request PATCH \
--url http://{defaultHost}/api/v2/platform/store_credit_categories/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"store_credit_category": {
"name": "refunded"
}
}
'{
"data": {
"id": "9",
"type": "store_credit_category",
"attributes": {
"name": "refunded",
"created_at": "2022-11-08T19:35:34.884Z",
"updated_at": "2022-11-08T19:35:35.112Z"
}
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Was this page helpful?