Download OpenAPI specification:Download
The Payment API gives you the ability to take payments.
Create a payment
Payment Created Successfully
Missing or invalid data
{- "paymentType": "comdataexpresscode",
- "expressCode": "11111111111111",
- "locationId": "2PQN9G4VElWxqaMoQBz5dMwkmAyYno",
- "firstName": "Test",
- "lastName": "Payer",
- "phone": "4041231234",
- "amount": 20,
- "customFields": {
- "reference": "INV21872"
}
}
{- "data": {
- "id": "a1b2c3d4e5f6g7h8i9",
- "status": "declined",
- "reason": "WexInvalidFuelCardNumber"
}, - "errors": [
- {
- "code": "wex_fuel_card_declined",
- "title": "WEX fuel card declined"
}
]
}
Payment Updated
Payment resource not found
{- "expressCode": "string",
- "firstName": "string",
- "lastName": "string",
- "email": "string",
- "phone": "string",
- "customFields": { },
- "driverNumber": "string",
- "unitNumber": "string",
- "tripNumber": "string",
- "hubReading": 0,
- "trailerNumber": "string",
- "trailerHubReading": 0,
- "trailerHours": 0,
- "licenseNumber": "string",
- "licenseState": "string",
- "poNumber": "string"
}
{- "data": {
- "id": "a1b2c3d4e5f6g7h8i9",
- "status": "complete"
}
}
Retrieve a payment by id
Success
Payment resource not found
{- "data": {
- "id": "string",
- "checkNumber": "string",
- "status": "string",
- "reason": "string",
- "fields": [
- {
- "name": "string",
- "required": true
}
]
}, - "errors": [
- {
- "code": "string",
- "title": "string"
}
]
}