Skip to content

Manual withdraw/deposit to loyalty card in location

Request

Manual withdraw/deposit to loyalty card in location

Security
BearerPartnerUser
Path
location_idnumberrequired

ID of a location.

Example:123
card_idnumberrequired

Loyalty card ID

Headers
Acceptstringrequired

Required B2B v2 response media type. Use application/vnd.api.v2+json. A charset parameter is also accepted.

Default:"application/vnd.api.v2+json"
Example:application/vnd.api.v2+json
Content-Typestringrequired

Should be equal to application/json

Example:application/json
Bodyapplication/json
amountnumberrequired

Withdraw/deposit amount. Positive for deposit, negative for withdraw.

Example:100.5
titlestring

Optional comment

curl -i -X POST \
  'https://developer.alteg.io/_mock/en/b2b-v1/openapi/locations/123/loyalty/cards/{card_id}/manual_transaction' \
  -H 'Accept: application/vnd.api.v2+json' \
  -H 'Authorization: Bearer <YOUR_Bearer {PartnerToken}, User {UserToken}_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "amount": 100.5,
    "title": "string"
  }'

Responses

OK

Bodyapplication/json
successboolean(Successful response status)

Response status.

Example:true
dataobject(loyalty_card)

Loyalty card

metaArray of any or object(Empty meta object)

Additional response data (empty object or empty array)

Example:
{}
Response
{ "success": true, "data": { "id": 0, "balance": 0, "points": 0, "paid_amount": 0, "sold_amount": 0, "visits_count": 0, "number": "string", "type_id": 0, "salon_group_id": 0, "max_discount_percent": 0, "max_discount_amount": 0 }, "meta": {} }