curl --request POST \
--url http://{defaultHost}/api/v2/platform/store_credit_types \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"store_credit_type": {
"name": "refunded",
"priority": 1
}
}
'{
"data": {
"id": "6",
"type": "store_credit_type",
"attributes": {
"name": "Expiring",
"priority": 1,
"created_at": "2022-11-08T19:35:36.660Z",
"updated_at": "2022-11-08T19:35:36.660Z"
}
}
}Creates a Store Credit Type
curl --request POST \
--url http://{defaultHost}/api/v2/platform/store_credit_types \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"store_credit_type": {
"name": "refunded",
"priority": 1
}
}
'{
"data": {
"id": "6",
"type": "store_credit_type",
"attributes": {
"name": "Expiring",
"priority": 1,
"created_at": "2022-11-08T19:35:36.660Z",
"updated_at": "2022-11-08T19:35:36.660Z"
}
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Was this page helpful?