Payment methods

Connect a payment method

POST
/v1/stores/{storeId}/payment-methods

Authorization

AuthorizationBearer <token>

API key from Settings → API keys

In: header

Path Parameters

storeId*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

curl -X POST "https://example.com/v1/stores/string/payment-methods" \  -H "Content-Type: application/json" \  -d '{    "provider": "string"  }'
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "provider": "string",  "providerName": "string",  "group": "string",  "name": "string",  "label": "string",  "description": "string",  "iconImageId": "51acc743-2da9-46a3-bf63-bfe370026c8b",  "showViaLabel": true,  "env": "live",  "status": "unverified",  "enabled": true,  "config": {    "property1": null,    "property2": null  },  "configuredCredentials": [    "string"  ],  "percentFeeBp": -9007199254740991,  "fixedFeeMinor": -9007199254740991,  "feeSchedule": {    "tiers": [      {        "fromMinor": 1,        "percentBp": -5000,        "fixedMinor": -5000      }    ],    "minFeeMinor": 1,    "maxFeeMinor": 1,    "countries": [      {        "countries": [          "st"        ],        "percentBp": -5000,        "fixedMinor": -5000      }    ]  },  "processorFeeBp": -9007199254740991,  "processorFeeFixedMinor": -9007199254740991,  "standardProcessorFee": {    "bp": -9007199254740991,    "fixedMinor": -9007199254740991  },  "minAmountMinor": -9007199254740991,  "maxAmountMinor": -9007199254740991,  "currencyOverride": "string",  "allowedCountries": [    "string"  ],  "blockedCountries": [    "string"  ],  "sortOrder": -9007199254740991,  "health": {    "checkedAt": "string",    "ok": true,    "message": "string"  },  "wallets": {    "checkedAt": "string",    "enabled": {      "applePay": true,      "googlePay": true    },    "domains": [      {        "domain": "string",        "applePay": "active",        "googlePay": "active",        "message": "string"      }    ]  },  "webhookUrl": "string",  "forwardingAddress": "string",  "sandboxVerified": true,  "confirmation": "string",  "createdAt": "string"}