at.marque.partner.createCheckout

marque.at

Schema Diff

+36 -7

From

CID
bafyreia7d2h5ebq...
Indexed At
2026-06-16 20:35 UTC
View this version

To

CID
bafyreighmrbtujl...
Indexed At
2026-07-30 09:24 UTC
View this version

Compatibility Analysis

Breaking Changes Detected

1 breaking change, 3 non-breaking changes.

Breaking Changes (1)
  • RequiredEdgeAdded RequiredEdgeAdded { vertex_id: "at.marque.partner.createCheckout:output", src: "at.marque.partner.createCheckout:output", tgt: "at.marque.partner.createCheckout:output.paymentMethod", kind: "prop", name: Some("paymentMethod") }
Non-Breaking Changes (3)
  • AddedVertex AddedVertex { vertex_id: "at.marque.partner.createCheckout:input.paymentMethod" }
  • AddedVertex AddedVertex { vertex_id: "at.marque.partner.createCheckout:output.paymentMethod" }
  • AddedEdge AddedEdge { src: "at.marque.partner.createCheckout:input", tgt: "at.marque.partner.createCheckout:input.paymentMethod", kind: "prop", name: Some("paymentMethod") }

Migration Guidance

Added Elements

  • AddedVertex { vertex_id: "at.marque.partner.createCheckout:input.paymentMethod" }
  • AddedVertex { vertex_id: "at.marque.partner.createCheckout:output.paymentMethod" }

Additional Notes

  • Breaking: RequiredEdgeAdded { vertex_id: "at.marque.partner.createCheckout:output", src: "at.marque.partner.createCheckout:output", tgt: "at.marque.partner.createCheckout:output.paymentMethod", kind: "prop", name: Some("paymentMethod") }
  • Non-breaking: AddedEdge { src: "at.marque.partner.createCheckout:input", tgt: "at.marque.partner.createCheckout:input.paymentMethod", kind: "prop", name: Some("paymentMethod") }
1 1
{
2 2
  "id": "at.marque.partner.createCheckout",
3 3
  "defs": {
4 4
    "item": {
5 5
      "type": "object",
6 6
      "required": [
7 7
        "domain"
8 8
      ],
9 9
      "properties": {
10 10
        "years": {
11 11
          "type": "integer",
12 12
          "maximum": 10,
13 13
          "minimum": 1,
14 14
          "description": "Registration period in years. Defaults to the TLD minimum."
15 15
        },
16 16
        "domain": {
17 17
          "type": "string",
18 18
          "maxLength": 253,
19 19
          "description": "Fully qualified domain name to register."
20 20
        },
21 21
        "autoRenew": {
22 22
          "type": "boolean",
23 23
          "description": "Mark the domain to auto-renew before expiry using the user's saved payment method. Defaults to false. Auto-renewal is charged separately from this order."
24 24
        },
25 25
        "whoisPrivacy": {
26 26
          "type": "boolean",
27 27
          "description": "Whether to redact the registrant's details from public WHOIS. Defaults to true (privacy on) when omitted; set false to publish the registrant's contact data. Silently ignored for TLDs that do not allow it, and for TLDs whose registry redacts WHOIS regardless (see whoisPrivacyAllowed from listPricing / checkAvailability)."
28 28
        }
29 29
      }
30 30
    },
31 31
    "main": {
32 32
      "type": "procedure",
33 33
      "input": {
34 34
        "schema": {
35 35
          "type": "object",
36 36
          "required": [
37 37
            "items",
38 38
            "registrant",
39 39
            "successUrl",
40 40
            "cancelUrl"
41 41
          ],
42 42
          "properties": {
43 43
            "items": {
44 44
              "type": "array",
45 45
              "items": {
46 46
                "ref": "#item",
47 47
                "type": "ref"
48 48
              },
49 49
              "maxLength": 50,
50 50
              "minLength": 1,
51 51
              "description": "Domains to register in this order, 1 to 50. Every domain must currently be available (verify with checkAvailability first); if any is unavailable or on an unsupported TLD the whole call fails."
52 52
            },
53 53
            "cancelUrl": {
54 54
              "type": "string",
55 55
              "format": "uri",
56 -
              "description": "Where Stripe redirects if the user cancels."
56 +
              "description": "Where the payment provider redirects if the user cancels."
57 57
            },
58 58
            "registrant": {
59 59
              "ref": "#registrant",
60 60
              "type": "ref"
61 61
            },
62 62
            "successUrl": {
63 63
              "type": "string",
64 64
              "format": "uri",
65 -
              "description": "Where Stripe redirects after successful payment. An order parameter carrying the order id is appended."
65 +
              "description": "Where the payment provider redirects after successful payment. An order parameter carrying the order id is appended."
66 +
            },
67 +
            "paymentMethod": {
68 +
              "type": "string",
69 +
              "description": "Hosted payment provider. Defaults to stripe when omitted. Use nowpayments for cryptocurrency checkout.",
70 +
              "knownValues": [
71 +
                "stripe",
72 +
                "nowpayments"
73 +
              ]
66 74
            }
67 75
          }
68 76
        },
69 77
        "encoding": "application/json"
70 78
      },
71 79
      "errors": [
72 80
        {
73 81
          "name": "InvalidRequest",
74 82
          "description": "The request is malformed: no items, too many items (max 50), or an item with an invalid domain."
75 83
        },
76 84
        {
77 85
          "name": "Unavailable",
78 86
          "description": "A requested domain cannot be registered: it is taken, on an unsupported TLD, or could not be verified with the registry. The message identifies the domain."
79 87
        },
80 88
        {
81 89
          "name": "InvalidRegistrant",
82 90
          "description": "The registrant is missing a required field (including state/province where the country requires it) or is missing an extra field a specific TLD mandates. The message names what is missing."
83 91
        },
84 92
        {
85 93
          "name": "InvalidCallback",
86 94
          "description": "successUrl or cancelUrl is not a valid absolute https URL."
95 +
        },
96 +
        {
97 +
          "name": "InvalidPaymentMethod",
98 +
          "description": "paymentMethod is not stripe or nowpayments."
99 +
        },
100 +
        {
101 +
          "name": "PaymentMethodUnavailable",
102 +
          "description": "The selected payment provider is not configured."
103 +
        },
104 +
        {
105 +
          "name": "PaymentProviderError",
106 +
          "description": "The selected payment provider could not create a hosted checkout."
87 107
        }
88 108
      ],
89 109
      "output": {
90 110
        "schema": {
91 111
          "type": "object",
92 112
          "required": [
93 113
            "orderId",
94 114
            "checkoutUrl",
95 115
            "subtotalCents",
96 -
            "currency"
116 +
            "currency",
117 +
            "paymentMethod"
97 118
          ],
98 119
          "properties": {
99 120
            "orderId": {
100 121
              "type": "string",
101 122
              "description": "Opaque order id; pass to getOrder to poll status."
102 123
            },
103 124
            "currency": {
104 125
              "type": "string",
105 126
              "description": "ISO 4217 currency code of subtotalCents. Currently always usd."
106 127
            },
107 128
            "checkoutUrl": {
108 129
              "type": "string",
109 130
              "format": "uri",
110 -
              "description": "Hosted Stripe Checkout URL to send the user to."
131 +
              "description": "Hosted checkout URL from the selected payment provider."
111 132
            },
133 +
            "paymentMethod": {
134 +
              "type": "string",
135 +
              "description": "Payment provider selected for this order.",
136 +
              "knownValues": [
137 +
                "stripe",
138 +
                "nowpayments"
139 +
              ]
140 +
            },
112 141
            "subtotalCents": {
113 142
              "type": "integer",
114 -
              "description": "Order subtotal in cents, before tax. Tax (if any) is computed by Stripe on the hosted page and added on top, so the amount the user pays may be higher."
143 +
              "description": "Order subtotal in cents, before provider-specific tax or conversion adjustments. The amount shown on the hosted page may be higher."
115 144
            }
116 145
          }
117 146
        },
118 147
        "encoding": "application/json"
119 148
      },
120 -
      "description": "Prices and validates the requested domains, ensures a registrant contact for the authenticated user, and returns a hosted Stripe Checkout URL. Call this proxied through the user's PDS (atproto-proxy: did:web:marque.at#marque_registrar) with a token holding the at.marque.partnerApi permission set: the authenticated user (the JWT iss) becomes the owner of the domains, and is the one billed on Stripe. The owning DID is taken from that authenticated session, never from input. The end user completes payment on Stripe's hosted page (where they see and confirm the exact domains and amount) and is redirected to successUrl with an order query parameter (successUrl?order=<orderId>) on success, or to cancelUrl if they abandon. Domains are not registered until payment is captured; poll at.marque.partner.getOrder with the returned orderId for provisioning status, then write the at.marque.domain and at.marque.dns records into the user's repository yourself. Only new registrations are supported here (no transfers or renewals)."
149 +
      "description": "Prices and validates the requested domains, ensures a registrant contact for the authenticated user, and returns a hosted checkout URL. Call this proxied through the user's PDS (atproto-proxy: did:web:marque.at#marque_registrar) with a token holding the at.marque.partnerApi permission set: the authenticated user (the JWT iss) becomes the owner of the domains and is billed by the selected payment provider. The owning DID is taken from that authenticated session, never from input. The end user completes payment on the provider's hosted page and is redirected to successUrl with an order query parameter (successUrl?order=<orderId>) on success, or to cancelUrl if they abandon. Domains are not registered until payment is confirmed; poll at.marque.partner.getOrder with the returned orderId for provisioning status, then write the at.marque.domain and at.marque.dns records into the user's repository yourself. Only new registrations are supported here (no transfers or renewals)."
121 150
    },
122 151
    "registrant": {
123 152
      "type": "object",
124 153
      "required": [
125 154
        "firstName",
126 155
        "lastName",
127 156
        "email",
128 157
        "street",
129 158
        "city",
130 159
        "zipcode",
131 160
        "country",
132 161
        "phoneCountryCode",
133 162
        "phoneSubscriber"
134 163
      ],
135 164
      "properties": {
136 165
        "city": {
137 166
          "type": "string",
138 167
          "maxLength": 255,
139 168
          "description": "City or locality."
140 169
        },
141 170
        "email": {
142 171
          "type": "string",
143 172
          "maxLength": 320,
144 173
          "description": "Registrant email. Must be a real, monitored address: registries may send a verification message here, and registry/transfer notifications go to it."
145 174
        },
146 175
        "state": {
147 176
          "type": "string",
148 177
          "maxLength": 255,
149 178
          "description": "State, province, or region. Required for countries that mandate one (e.g. US, CA, AU, BR); send the full name or its ISO 3166-2 code (e.g. 'California' or 'CA'). Omit for countries that do not use one."
150 179
        },
151 180
        "street": {
152 181
          "type": "string",
153 182
          "maxLength": 255,
154 183
          "description": "Street address including house/building number, e.g. '123 Main St'."
155 184
        },
156 185
        "country": {
157 186
          "type": "string",
158 187
          "maxLength": 2,
159 188
          "minLength": 2,
160 189
          "description": "ISO 3166-1 alpha-2 country code, uppercase, e.g. US, GB, DE. Determines which address/state rules apply."
161 190
        },
162 191
        "zipcode": {
163 192
          "type": "string",
164 193
          "maxLength": 32,
165 194
          "description": "Postal/ZIP code. Required even where the country's format is loose."
166 195
        },
167 196
        "lastName": {
168 197
          "type": "string",
169 198
          "maxLength": 255,
170 199
          "description": "Registrant's legal family name."
171 200
        },
172 201
        "firstName": {
173 202
          "type": "string",
174 203
          "maxLength": 255,
175 204
          "description": "Registrant's legal given name."
176 205
        },
177 206
        "taxIdType": {
178 207
          "type": "string",
179 208
          "maxLength": 32,
180 209
          "description": "Optional. Type of the tax identifier in taxIdValue, e.g. 'vat' for an EU VAT number or a registry-specific code. Send together with taxIdValue. Some TLDs (notably several EU ccTLDs registered to an organization) require a VAT number."
181 210
        },
182 211
        "taxIdValue": {
183 212
          "type": "string",
184 213
          "maxLength": 64,
185 214
          "description": "Optional. The tax identifier itself, e.g. an EU VAT number like DE123456789. Paired with taxIdType."
186 215
        },
187 216
        "organization": {
188 217
          "type": "string",
189 218
          "maxLength": 255,
190 219
          "description": "Optional. If set, the domain is registered to this organization rather than an individual. Leave empty for a personal registration."
191 220
        },
192 221
        "phoneAreaCode": {
193 222
          "type": "string",
194 223
          "maxLength": 16,
195 224
          "description": "Optional area/city code, for regions that use one separately from the subscriber number."
196 225
        },
197 226
        "passportNumber": {
198 227
          "type": "string",
199 228
          "maxLength": 64,
200 229
          "description": "Optional. Passport or national identity document number. Required by a few ccTLDs for individual registrants."
201 230
        },
202 231
        "phoneSubscriber": {
203 232
          "type": "string",
204 233
          "maxLength": 32,
205 234
          "description": "Local subscriber number, digits only. Combined with phoneCountryCode (and phoneAreaCode) to form the full phone number. Required."
206 235
        },
207 236
        "phoneCountryCode": {
208 237
          "type": "string",
209 238
          "maxLength": 8,
210 239
          "description": "International calling code with a leading plus, e.g. +1 for US/CA or +44 for UK. Required."
211 240
        },
212 241
        "socialSecurityNumber": {
213 242
          "type": "string",
214 243
          "maxLength": 64,
215 244
          "description": "Optional. National identification / social security number, where a TLD mandates it (e.g. certain Nordic or Latin American ccTLDs). Handle as sensitive data."
216 245
        },
217 246
        "companyRegistrationNumber": {
218 247
          "type": "string",
219 248
          "maxLength": 64,
220 249
          "description": "Optional. Company/commercial register number. Required by some TLDs when registering to an organization (organization set)."
221 250
        }
222 251
      },
223 252
      "description": "The person or organization that will own the domains (the WHOIS registrant). Marque creates one registrant contact from these fields and uses it as the registrant, admin, tech, and billing contact for every domain in this order. Collect these in the partner's UI; the end user never visits Marque. All names and addresses must be real and accurate. Most gTLDs require the registrant email to be verifiable, so a registry verification email may be sent to it after registration; an unverified address can cause some TLDs to suspend the domain until confirmed. Certain TLDs require extra fields beyond these (for example a tax/VAT or national ID); those orders fail with InvalidRegistrant naming the missing field, and are not yet supported through this endpoint."
224 253
    }
225 254
  },
226 255
  "$type": "com.atproto.lexicon.schema",
227 256
  "lexicon": 1,
228 -
  "description": "Create a hosted Stripe Checkout session to register one or more domains for the calling user."
257 +
  "description": "Create a hosted payment checkout to register one or more domains for the calling user."
229 258
}

Compare Other Versions

Lexicon Garden

@