Skip to main content

Example Request

The following cURL request can be used to test the API POST endpoint on the demo environment.

You will need the following variables obtained from PaySuite.

  • {{PAYSUITE_SUBSCRIPTION_KEY}}
  • {{SOFTCO_PLATFORM_ACCOUNT_ID}}
curl --location 'https://group.pay.accessacloud.com/pay-here-demo/api/merchants' \
--header 'Content-Type: application/json' \
--header 'Ocp-Apim-Subscription-Key: {{PAYSUITE_SUBSCRIPTION_KEY}}' \
--data '{
"customerId": "softco_customer_001",
"customerLegalName": "SoftCo Customer 001",
"stripePlatformAccountId": "{{SOFTCO_PLATFORM_ACCOUNT_ID}}",
"redirectUrl": "https://localhost/return",
"country": "GB"
}'