Payments
Payments drivers collected in the field: online through Mollie, at the vehicle’s terminal, or cash. Taking a payment stays with the driver app. Through the API you read payments and review them before they’re invoiced.
Amounts use Mollie’s shape: { "value": "45.00", "currency": "EUR" }, with the value as a string.
List payments
GET/v1/payments
Requires the scope payments:read.
Available from phase 2
Payments drivers collected for rides: online, at the vehicle's terminal, or cash.
Query parameters
statusstring
pending, paid, authorized, failed, canceled or expired.
review_statusstring
pending, approved or rejected.
created_afterISO 8601
Only records created after this time.
created_beforeISO 8601
Only records created before this time.
updated_afterISO 8601
Only records changed after this time. For a sync, pass your last sync time minus 60 seconds and deduplicate by id.
limitinteger
Page size, 1 to 100. Default 25.
cursorstring
The next_cursor of the previous page.
Get a payment
GET/v1/payments/{id}
Requires the scope payments:read.
Available from phase 2
One payment.
Review a payment
PATCH/v1/payments/{id}
Requires the scope payments:write.
Available from phase 2
Set the review status of a paid payment before it is invoiced. Only review_status can change.
Body
review_statusstringrequired
approved or rejected.
Invoice in Asperion
POST/v1/payments/{id}/sync-to-asperion
Requires the scope payments:write.
Available from phase 4
Book an approved payment in Asperion, the company's accounting system. Requires a connected Asperion administration.
Side effect. Creates an invoice in Asperion.