Admin api sessions
Add pre-authorization to session
Authorization
bearerAuth AuthorizationBearer <token>
In: header
Path Parameters
sessionId*string
A unique token to identify a shopping session. Note, sessionToken and sessionId are same concept in AIFI system.
Request Body
application/json
amount*integer
Pre-auth amount presented as minor units
Range
1 <= valuepaymentInstrumentToken*string
externalPreAuthId*string
Response Body
application/json
application/json
curl -X POST "https://oasis-api.public.sandbox.oasis.aifi.com/api/admin/v2/sessions/d3a00526-1864-4f6e-bb2d-46e3ab7fa780/pre-authorizations" \ -H "Content-Type: application/json" \ -d '{ "amount": 1, "paymentInstrumentToken": "string", "externalPreAuthId": "string" }'{
"paymentInstrumentToken": "string",
"externalPreAuthId": "string",
"id": 0,
"sessionId": "d3a00526-1864-4f6e-bb2d-46e3ab7fa780"
}Empty
Empty
{
"message": "Invalid request body",
"type": "E_INVALID_BODY",
"errors": [
{
"error": "\"email\" is required",
"rule": "any.required",
"field": "\"email\""
}
]
}Empty
How is this guide?