Skip to main content

cURL

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}}
  • {{DIVISION_ACCOUNT_ID}}
curl --location 'https://group.pay.accessacloud.com/pay-here-demo/api/v2/merchants' \
--header 'Content-Type: application/json' \
--header 'Ocp-Apim-Subscription-Key: {{PAYSUITE_SUBSCRIPTION_KEY}}' \
--data '{
"divisionAccountId": "{{DIVISION_ACCOUNT_ID}}",
"customerId": "softco_customer_001",
"redirectUrl": "https://localhost/return",
"business": {
"type": "soleProprietorship",
"soleProprietorship": {
"country": "GB",
"firstName": "FIRST_NAME",
"lastName": "LAST_NAME"
}
},
"paymentGateway": {
"type": "stripe"
}
}'