POST
/
payment-services
curl --request POST \
  --url https://api.{gr4vy_id}.gr4vy.app/payment-services \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "payment_service_definition_id": "stripe-card",
  "display_name": "Stripe (Main)",
  "fields": [
    {
      "key": "private_key",
      "value": "sk_test_26PHem9AhJZvU623DfE1x4sd"
    }
  ],
  "accepted_countries": [
    "US",
    "GB",
    "DE"
  ],
  "accepted_currencies": [
    "EUR",
    "USD",
    "GBP"
  ]
}'
{
  "type": "payment-service",
  "id": "faaad066-30b4-4997-a438-242b0752d7e1",
  "merchant_account_id": "default",
  "payment_service_definition_id": "stripe",
  "method": "card",
  "display_name": "Stripe",
  "status": "pending",
  "accepted_currencies": [
    "EUR"
  ],
  "accepted_countries": [
    "DE"
  ]
}

This endpoint requires the payment-services.write scope.

Authorizations

Authorization
string
header
required

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

Body

application/json

Request body for activating a payment service.

Response

201
application/json
Returns the created payment service.

An active, configured payment service.