Download OpenAPI specification:Download
Documentation for Flux API to be able to perform transactions using user's QR Wallet
Gets Flux commeces catalog
type | string Enum: "group" "chain" "store" Filter commerces by type |
{- "data": {
- "items": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "type": "group"
}
]
}
}
Creates a new coupon with information provided
Parameters required to creates a new coupon
commerce required | string <uuid> Flux commerce identifier |
amount required | integer <int32> Amount for coupon in cents |
expiration required | string <date-time> Expiration for coupon using ISO 8601 ( |
isPayable required | boolean Flag that indicates if coupon need be payable to the commerce |
required | object |
{- "commerce": "fd3cf595-fb08-4770-ba6e-01167c98ff7a",
- "amount": 10000,
- "expiration": "2021-12-31T23:59:59.999Z",
- "isPayable": true,
- "customer": {
- "id": 0,
- "name": "string",
- "email": "string",
- "phone": "string"
}
}
{- "data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "qr": "string",
- "customer": "0ac6320b-fa4d-4235-8d23-413a2b863bad",
- "amount": 0,
- "balance": 0,
- "isPayable": true,
- "expiration": "2019-08-24T14:15:22Z"
}
}
Gets coupon information
couponId required | string <uuid> Coupon identifier |
{- "data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "qr": "string",
- "customer": "0ac6320b-fa4d-4235-8d23-413a2b863bad",
- "amount": 0,
- "balance": 0,
- "isPayable": true,
- "expiration": "2019-08-24T14:15:22Z"
}
}
Update a coupon. For now only can enable or disable a coupon
couponId required | string <uuid> Coupon identifier |
Parameters required to creates a new coupon
enabled | boolean Flag that indicates if coupon is enabled (true) or disabled (false) |
{- "enabled": true
}
{- "error": {
- "code": "ERR_CLIENT",
- "message": ""
}
}