ApiStore Credit Administration
Issue store credit
Issues a new store credit to a user. Refund-source credits cannot be issued manually.
Authorization
Bearer AuthorizationBearer <token>
Enter your bearer token from the Pylon Auth API.
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X POST "https://loading/api/organizer/v1/credits" \ -H "Content-Type: application/json" \ -d '{ "userId": "2c4a230c-5085-4924-a3e1-25fb4fc5965b", "amount": 1, "currency": "str", "source": "Refund" }'{
"creditId": "ab154ac2-8f85-4580-8849-80b7ce246d18",
"amount": 0.1,
"currency": "string",
"expiresAt": "2019-08-24T14:15:22Z"
}{
"code": "string",
"message": "string"
}