Document Information | |
---|---|
File: | ATIONet - Dynamic QR Code Payments |
Doc Version: | 1.0 |
Release Date: | 2, September 2021 |
Author: | ATIONet LLC |
Change Log | ||
---|---|---|
Ver. | Date | Change Summary |
1.0 | 2/September/2021 | Initial version. |
- Overview
- Message Structure
- Field Descriptions
- Error Handling
- Transactions States
- Response Codes
- Message Samples
This document is part of Ationet Fleet Mobile Payment Fully Integrated and only describe Mobile Payment Solution flow in which the PFEP is an external agent to ATIONet
.
API URI: ationetmobilepayment-appshost-test.azurewebsites.net/
This section describe the message structure for each API Method available, as well as the responses messages for each one.
Create a Sale with external authorization. The sale creation recibes an ID, if this ID already exists then the method returns the Sale's Id.
URL: /api/PreAuthorizedPayments
Method: POST
Body: { "siteCode":"string", "pumpNumber":integer, "fuelCode":"string", "amount":double, "mobilePaymentMode":integer, "potencyKeyId":"string", "externalReferanceID":"string" }
Header:
Content-Type: application/json; charset=utf-8
content-encoding: gzip
Body: { “TransactionId”:”StringValue” }
This section describe through a table all parameters from request.
Paramether | Type | Description |
---|---|---|
siteCode |
string |
The site code |
pumpNumber |
integer |
The pump number |
fuelCode |
string |
The fuel code |
amount |
double |
Number of liters of fuel to dispatch |
mobilePaymentMode |
integer |
The operation mode Code. It can be for 1 for Fullintegrated |
potencyKeyId |
string |
The Transaction's ID |
externalReferenceID |
string |
Authorization reference ID |
Success/failure exits on the Native Transaction Protocol will be handled via HTTP status codes.
Successful request will get a HTTP 200 and the resulting response.
Failure to process the request will be indicated by an HTTP 400’s range status code.
This section describe through a table all states that a sale can have.
State name | ID | Message |
---|---|---|
Created |
1 |
Created |
FuelPointAuthorizationRequested |
4 |
FuelPoint Authorization Requested |
PumpReserveAccepted |
5 |
Site System Accept Pump Reserve |
PumpReserveRefused |
6 |
Site System not Accept Pump Reserve |
FuelPointAuthorized |
7 |
Fuel Point Authorized |
CanceledByFuelPoint |
8 |
Canceled By Fuel Point |
Fueling |
9 |
Fueling |
Complete |
10 |
Complete |
CancelationRequested |
12 |
Cancelation Requested |
CanceledByUser |
13 |
Canceled By User |
CanceledBySiteSystem |
14 |
Canceled By Site System |
FuelPointDeauthorizationRequested |
15 |
Fuel Point Deauthorization Requested |
SessionError |
16 |
Session not available |
UnknownError |
17 |
Unknown error when trying to connect with session |
SiteSystemError |
18 |
Site System Generic error |
SiteSystemError |
19 |
Cancelled By MPPA |
Both methos response the same codes.
Code | Description |
---|---|
200 |
Success |
400 |
Bad request |
Request Example
{
"siteCode": "1524",
"pumpNumber": 1,
"fuelCode": "3",
"amount": 9,
"mobilePaymentMode": 1,
"potencyKeyId": "5734cbb9-f78f-4ad4-aa87-79ed95181c5a",
"externalReferanceID": "854712"
}
Response Example
{
"transactionId": "5734cbb9-f78f-4ad4-aa87-79ed95181c5a"
}