curl --request PATCH \
--url http://{defaultHost}/api/v2/platform/orders/{id}/use_store_credit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"amount": 123
}'{
"error": "The access token is invalid"
}Creates Store Credit payment for an Order
curl --request PATCH \
--url http://{defaultHost}/api/v2/platform/orders/{id}/use_store_credit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"amount": 123
}'{
"error": "The access token is invalid"
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Select which associated resources you would like to fetch, see: https://jsonapi.org/format/#fetching-includes
store credit payment created
Was this page helpful?