POST
/
PaymentMethodDomain
curl --request POST \
  --url https://api-sandbox.payabli.com/api/PaymentMethodDomain \
  --header 'Content-Type: application/json' \
  --header 'requestToken: <api-key>' \
  --data '{
  "entityId": 109,
  "entityType": "paypoint",
  "domainName": "subdomain.domain.com",
  "applePay": {
    "isEnabled": true
  }
}'
{
  "responseText": "<string>",
  "responseData": {
    "entityId": 109,
    "entityType": "paypoint",
    "domainName": "subdomain.domain.com",
    "applePay": {
      "isEnabled": true,
      "data": {
        "errorMessage": "null",
        "metadata": {
          "isFileAvailable": true,
          "isFileContentValid": true,
          "statusCode": 123,
          "redirectUrl": "<string>",
          "redirectDomainName": "<string>"
        }
      }
    },
    "ownerEntityId": 109,
    "ownerEntityType": "organization",
    "cascades": [
      {
        "jobId": "445865",
        "jobStatus": "completed",
        "jobErrorMessage": "<string>",
        "createdAt": "2022-07-01 15:00:01",
        "updatedAt": "2022-07-01 15:00:01"
      }
    ],
    "createdAt": "2022-07-01 15:00:01",
    "updatedAt": "2022-07-01 15:00:01",
    "id": "pmd_12AB"
  },
  "pageidentifier": "<string>",
  "isSuccess": true
}

Authorizations

requestToken
string
header
required

Most endpoints require an organization token. Some endpoints require an application token, and those endpoints are noted.

Body

application/json
entityId
integer

The entity's ID in Payabli.

Example:

109

entityType
string

The entity type. Available values:

  • paypoint
  • organization
  • psp (payment service provider).
Example:

"paypoint"

domainName
string

The domain. For example: subdomain.domain.com or domain.com

Example:

"subdomain.domain.com"

applePay
object

Apple Pay configuration information.

Response

200
application/json
Success

Response for the add payment method domain operation.

responseText
string
responseData
object

Data related to the payment method domain.

pageidentifier
string
isSuccess
boolean

Was this page helpful?