Add Domain
POST/v1/merchants/:merchant_id/domains
Add a new domain to be used for Apple Pay
Request
Path Parameters
merchant_id uuidrequired
- application/json
Body
required
host stringrequired
Responses
- 201
- 400
- 401
- 403
- 404
Domain added successfully
- application/json
- Schema
- Example (from schema)
Schema
id uuid
host string
status string
Possible values: [initiated, validated, registered]
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"host": "string",
"status": "initiated"
}
Business Error or validation error.
- application/json
- Schema
- Example (from schema)
Schema
type string
Contains the error type
message string
Human readable error message for the error
errors object
Contains string-array pair representing a field and list of validation errors.
{
"type": "invalid_request",
"message": null,
"errors": {
"foo": "this is returned for validation errors only"
}
}
Invalid authorization credentials
- application/json
- Schema
- Example (from schema)
Schema
type string
Possible values: [authentication_error]
message string
Possible values: [Invalid authorization credentials]
errors object
{
"type": "authentication_error",
"message": "Invalid authorization credentials",
"errors": null
}
Invalid authorization credentials
- application/json
- Schema
- Example (from schema)
Schema
type string
Possible values: [api_error]
message string
Possible values: [User not authorized]
errors object
{
"type": "api_error",
"message": "User not authorized",
"errors": null
}
One of the record referenced in the request was not found
- application/json
- Schema
- Example (from schema)
Schema
type string
Possible values: [record_not_found]
message string
errors object
{
"type": "record_not_found",
"message": "The <object type> record you were looking for was not found.",
"errors": null
}
Loading...