cURL
curl --request POST \ --url http://{defaultHost}/api/v2/platform/store_credit_categories \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "store_credit_category": { "name": "refunded" } }'
{ "data": { "id": "6", "type": "store_credit_category", "attributes": { "name": "Exchange", "created_at": "2022-11-08T19:35:34.099Z", "updated_at": "2022-11-08T19:35:34.099Z" } } }
Creates a Store Credit Category
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Record created
The response is of type object.
object
Was this page helpful?