POST
/
payment-service-definitions
/
{payment_service_definition_id}
/
sessions
curl --request POST \
  --url https://api.{id}.gr4vy.app/payment-service-definitions/{payment_service_definition_id}/sessions \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{}'
{
  "type": "payment-service-session",
  "status": "succeeded",
  "code": "UNKNOWN_ERROR",
  "status_code": 201,
  "response_body": {
    "sessionId": "12345"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

payment_service_definition_id
string
required
Examples:

"adyen-ideal"

Body

application/json · object

The JSON payload to sent to the payment service's session API.

Response

200
application/json
Successful Response

The session data received from the payment service.