PointOfSalesRefunds
img
The APIs to manage point of sales (pos) refunds.
You can use these APIs to : -
- - initiate(create) a refund,
- - query a refund details,
- - capture a refund,
- - cancel a refund,
- - query list of refunds associated with a payment,
| API | Description |
|---|---|
| GET api/pos/refund/create?amount={amount}¤cyCode={currencyCode}&paymentId={paymentId}&refundOrderId={refundOrderId}&accessToken={accessToken}&bioCode={bioCode} |
Create a refund |
| POST api/pos/refund/create |
Create a refund by a POST request |
| GET api/pos/refund/details?refundId={refundId}&accessToken={accessToken}&bioCode={bioCode} |
Query the refund details |
| GET api/pos/refunds?paymentId={paymentId}&accessToken={accessToken}&bioCode={bioCode} |
Gets a list of refundsIds associated with the paymentId |
| GET api/pos/refund/capture?refundId={refundId}&accessToken={accessToken}&bioCode={bioCode} |
Capture a refund. |
| GET api/pos/refund/cancel?refundId={refundId}&accessToken={accessToken}&bioCode={bioCode} |
Cancel a refund. |
PointOfSalesPayments
img
The APIs to manage point of sales (pos) payments.
You can use these APIs to : -
- - request the API to generate qrCode,
- - initiate a new payment,
- - check payment status. The possible payment status are (Initiated,Paired,IssuedToUser,Reserved,CancelledByUser,CancelledByClient,CancelledByMobilePay,ExpiredAndCancelled,Captured,RejectedByMobilePayDueToAgeRestrictions),
- - capture a payment (Note: You can only capture a payment when its status is Reserved),
- - query a payment details,
- - prepare a payment,
- - make payment ready,
- - or cancel a payment (Note: You can cancel at a payment at any point but not when it's status is captured. If it is captured you can only refund.
MobilePay has two types of Payments flow.
- Direct Payment flow
This payment flow you start with
- - initiate a new payment (api/pos/payment/start),
- - check payment status (api/pos/payment/status). The possible payment status are (Initiated,Paired,IssuedToUser,Reserved,CancelledByUser,CancelledByClient,CancelledByMobilePay,ExpiredAndCancelled,Captured,RejectedByMobilePayDueToAgeRestrictions),
- - capture a payment (api/pos/payment/capture) (Note: You can only capture a payment when its status is Reserved),
- Other Payment flow
This payment flow you start with
- - prepare a new payment (api/pos/payment/prepare),
- - make a prepare payment ready (api/pos/payment/ready),
- - check payment status (api/pos/payment/status). The possible payment status are (Initiated,Paired,IssuedToUser,Reserved,CancelledByUser,CancelledByClient,CancelledByMobilePay,ExpiredAndCancelled,Captured,RejectedByMobilePayDueToAgeRestrictions),
- - capture a payment (api/pos/payment/capture) (Note: You can only capture a payment when its status is Reserved),
The payment flow that I would recommend to use is the first one (Direct Payment Flow).
NOTE: The Point of Sale is responsible for cancelling a payment that has been initiated but not completed. Otherwise you can't state a new payment.
| API | Description |
|---|---|
| GET api/pos/terminal/qrcode?terminalId={terminalId}&accessToken={accessToken}&bioCode={bioCode} |
Get the QrCode image link for the terminal |
| GET api/pos/payment/start?orderId={orderId}&amount={amount}&terminalId={terminalId}¤cyCode={currencyCode}&accessToken={accessToken}&bioCode={bioCode} |
Starts a payment by initiating a new payment based on a terminalId. |
| GET api/pos/payment/start/byPosId?orderId={orderId}&amount={amount}&posId={posId}¤cyCode={currencyCode}&accessToken={accessToken}&bioCode={bioCode} |
Starts a payment by initiating a new payment based on a posId. |
| POST api/pos/payment/start |
Starts a payment by initiating a new payment based on the terminalId using POST method. |
| POST api/pos/payment/start/byPosId |
Starts a payment by initiating a new payment based on the posId using POST method. |
| GET api/pos/payment/prepare?orderId={orderId}&terminalId={terminalId}&accessToken={accessToken}&bioCode={bioCode} |
The prepared payment flow makes the payment accessible to the customer on creation, pending an amount.
|
| POST api/pos/payment/prepare |
The prepared payment flow makes the payment accessible to the customer on creation, pending an amount using a POST method.
|
| GET api/pos/payment/ready?orderId={orderId}&amount={amount}&terminalId={terminalId}¤cyCode={currencyCode}&paymentId={paymentId}&accessToken={accessToken}&bioCode={bioCode} |
Makes a payment ready for the user approval.
|
| POST api/pos/payment/ready |
Makes a payment ready for the user approval using POST method.
|
| GET api/pos/payment/details?paymentId={paymentId}&accessToken={accessToken}&bioCode={bioCode} |
Query the payment details. |
| GET api/pos/payments?state={state}&orderId={orderId}&terminalId={terminalId}&accessToken={accessToken}&bioCode={bioCode} |
Gets a list of active payments (ie. neither captured, rejected, cancelled, or reversed) if no paymentState is provided.
|
| GET api/pos/payment/status?paymentId={paymentId}&accessToken={accessToken}&bioCode={bioCode} |
Gets a payment status.
|
| GET api/pos/payment/capture?paymentId={paymentId}&amount={amount}&accessToken={accessToken}&bioCode={bioCode} |
Capture a payment.
|
| GET api/pos/payment/cancel?paymentId={paymentId}&accessToken={accessToken}&bioCode={bioCode} |
Cancel a payment. |
| GET api/pos/payment/id/retrieve/bystate?orderId={orderId}&state={state}&accessToken={accessToken}&bioCode={bioCode} |
In case the paymentId has been lost it can be retrieved by calling this API.
|
| GET api/pos/payment/id/retrieve/byterminal?orderId={orderId}&terminalId={terminalId}&paymentState={paymentState}&accessToken={accessToken}&bioCode={bioCode} |
In case the paymentId has been you can use the terminalId and orderId to retrieve the paymentId.
|
| GET api/pos/payment/id/retrieve/byposId?paymentState={paymentState}&orderId={orderId}&posId={posId}&accessToken={accessToken}&bioCode={bioCode} |
In case the paymentId has been you can use the posId and orderId to retrieve the paymentId.
|
PointOfSalesManagement
The APIs to manage point of sales (pos).
You can request to crate a long lived an access token, reset access token, create pos, delete pos, get point of sale information, get the list of sotersIds, store information.
NOTE: If you would like to update the Pos information, you will need first to delete a PoS and then create it.
If you would like a specific return result type, add the accept type header value. For example to receive result as JSON, Add a request header Accept, application/json.
| API | Description |
|---|---|
| GET api/pos/manage/token?bioCode={bioCode} |
Creates a long lived merchant AccessToken to be used to access MobilePay Payment API.
|
| GET api/pos/manage/token/reset?bioCode={bioCode}&previousAccessToken={previousAccessToken} |
Resets a long lived merchant AccessToken to be used to access MobilePay Payment API.
|
| POST api/pos/manage/token |
Creates a long lived merchant AccessToken using a POST REQUEST
|
| GET api/pos/manage/create?terminalId={terminalId}&accessToken={accessToken}&bioCode={bioCode} |
Creates a Point of Sale. |
| POST api/pos/manage/create |
Creates a Point of Sale - POST method. |
| GET api/pos/manage/delete?terminalId={terminalId}&accessToken={accessToken}&bioCode={bioCode} |
Deletes a point of sale PosId terminal from MobilePay gateway
|
| DELETE api/pos/manage/delete?terminalId={terminalId}&accessToken={accessToken}&bioCode={bioCode} |
Deletes a point of sale PosId terminal from MobilePay gateway
|
| GET api/pos/manage/terminal/information?terminalId={terminalId}&accessToken={accessToken}&bioCode={bioCode} |
Get information about the terminal Pos from MobilePay gateway
|
| GET api/pos/manage/stores?accessToken={accessToken}&bioCode={bioCode} |
Get the StoresIds of the supplied merchant bioCode and access token.
|
| GET api/pos/manage/store?storeId={storeId}&accessToken={accessToken}&bioCode={bioCode} |
Get the Store information
|
| GET api/pos/manage/checkInStatus/byposId?posId={posId}&accessToken={accessToken}&bioCode={bioCode} |
Looks up information about the user currently checked in at a point of sale using a posId.
|
| GET api/pos/manage/checkInStatus/byterminalId?terminalId={terminalId}&accessToken={accessToken}&bioCode={bioCode} |
Looks up information about the user currently checked in at a point of sale using a terminalId.
|