Add Payment Method Domain
API Basics
Pay In Endpoints
- MoneyIn
- Subscription
- TokenStorage
- Invoice
- LineItem
- PaymentLink
- PaymentMethodDomain
- HostedPaymentPages
- Cloud
- Wallet: Apple Pay
Pay Out Endpoints
- MoneyOut
- Bill
Pay Ops Endpoints
- Templates
- Boarding
- Chargebacks and ACH Returns
- Entities
- Notification
- Query
- Statistic
- Export
- Import
Object Models
- Object Model References
Add Payment Method Domain
Add a payment method domain to an organization or paypoint.
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
Most endpoints require an organization
token. Some endpoints require an application
token, and those endpoints are noted.
Body
application/json
Response
200
application/json
Success
Response for the add payment method domain operation.
Was this page helpful?
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
}