Open the Billpocket POS app from your native iOS app using the custom URL scheme billpocket://.Service available in Mexico only.
Requirements#
Calling the POS app#
Send parameters as a query string in the URL when calling billpocket://. The POS app opens on the corresponding screen based on the received parameters.Supported operations#
Request parameters#
| Parameter | Type | Sale | Refund | Description |
|---|
transaction | string | ✅ | ✅ | "venta" or "devolucion" |
userToken | string | ✅ | ✅ | Your user token |
identifier | string | ✅ | ✅ | Unique identifier for traceability. Returned in response. Max 256 chars |
amount | decimal | ✅ | — | Transaction amount. Two decimal places. Does not include tip |
urlScheme | string | ✅ | ✅ | App, webhook, or URL scheme called after the transaction. Max 50 chars |
transactionId | string | — | ✅ | Original transaction ID to refund |
tip | decimal | — | — | Tip amount. Two decimal places |
msi | integer | — | — | MSI installments: 0, 3, 6, 9, or 12 |
reference | string | — | — | Text reference. Max 256 chars |
email | string | — | — | Customer email. Max 150 chars |
phone | string | — | — | Customer phone. Max 14 chars |
showPhotoButton | boolean | — | — | Show photo attachment button. Default false |
mandatoryPhoto | boolean | — | — | Require photo. Requires showPhotoButton: true |
comesFromQR | boolean | — | — | Set true if the URL comes from a QR image |
Sale#
Set transaction=venta, provide your user token, a unique identifier, the amount, and the urlScheme to receive the result.billpocket://?transaction=venta&userToken=<token>&identifier=ORD-001&amount=500.00&urlScheme=miapp://resultado
Refund#
Set transaction=devolucion and provide the transactionId of the original transaction.billpocket://?transaction=devolucion&userToken=<token>&identifier=REF-001&transactionId=128010&urlScheme=miapp://resultado
Got a suggestion on this documentation? Contact us.