POST
/
payment-service-definitions
/
{payment_service_definition_id}
/
sessions
using Gr4vy;
using Gr4vy.Models.Components;
using System.Collections.Generic;

var sdk = new Gr4vySDK(bearerAuth: "<YOUR_BEARER_TOKEN_HERE>");

var res = await sdk.PaymentServiceDefinitions.SessionAsync(
    paymentServiceDefinitionId: "adyen-ideal",
    requestBody: new Dictionary<string, object>() {

    }
);

// handle response
{
  "type": "payment-service-session",
  "status": "succeeded",
  "code": "UNKNOWN_ERROR",
  "status_code": 201,
  "response_body": {
    "sessionId": "12345"
  }
}

This endpoint requires the transactions.write scope.

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 · Body · 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.