Error
A valid request URL is required to generate request examples{
"id": "<string>",
"object": "web_domain",
"domain": "https://shop.example.com",
"livemode": true,
"apple_pay": {
"status": "not_registered",
"registered_at": 123,
"error": "<string>"
},
"created_at": 123
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}Web domain endpoints
Add a web domain
Adds and canonicalizes an origin. Re-adding an existing origin is safe and returns the existing resource. This authorizes the origin for Ionic browser surfaces; Apple Pay registration is a separate action.
POST
/
web_domains
Error
A valid request URL is required to generate request examples{
"id": "<string>",
"object": "web_domain",
"domain": "https://shop.example.com",
"livemode": true,
"apple_pay": {
"status": "not_registered",
"registered_at": 123,
"error": "<string>"
},
"created_at": 123
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}Authorizations
An Account secret key (sk_…) sent as Authorization: Bearer <key>.
Body
application/json
Browser origin to authorize. A bare host defaults to HTTPS. Paths, query strings, fragments, user information, and wildcards are not accepted.
Minimum string length:
1Response
The authorized web domain.

