Skip to main content
Glama

Agentic Fabrication Network (AFN)

Create checkout

create_checkout

Create the order and get a hosted payment link for a chosen offer. Call this as soon as the user picks an offer + shipping speed — do NOT ask for their address first: the secure payment page collects the shipping address and email. Only pass address fields if the user already volunteered them. Returns checkout_url — give it to the user to pay; UFP places the vendor order automatically after payment.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
zipNo
cityNo
nameNoRecipient full name (only if the user provided it)
emailNoBuyer email (only if the user provided it)
phoneNo
stateNoTwo-letter US state
street1NoStreet address (only if the user provided it)
street2No
offer_idYes
return_urlNoExact URL of the page the user is on right now, IF the client application knows it (a web app embedding this tool passes its own page URL). The post-payment page shows a 'Return to <site>' button pointing here. Omit when unknown — never invent one.
billing_zipNo
coupon_codeNoCoupon code, only if the user provided one (early-adopter codes from the AFN team). Case-insensitive. The discount appears on the payment page; a 100%-off code makes the total $0 with no card required. Never invent or guess a code.
billing_cityNo
billing_nameNoBilling address, only when the buyer answered the billing question (e.g. said it differs from shipping, or a checkout UI's 'same as shipping' checkbox — then send the shipping values verbatim). Never ask for it; omit and the payment page handles billing.
billing_stateNoTwo-letter US state
billing_street1No
billing_street2No
shipping_option_idYesOne of the offer's shipping option ids

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / coupon_code
      Added value: +{
      +  "description": "Coupon code, only if the user provided one (early-adopter codes from the AFN team). Case-insensitive. The discount appears on the payment page; a 100%-off code makes the total $0 with no card required. Never invent or guess a code.",
      +  "type": "string"
      +}
  2. Changed6 schema fields changed
    • addedInput schema / properties / billing_city
      Added value: +{
      +  "type": "string"
      +}
    • addedInput schema / properties / billing_name
      Added value: +{
      +  "description": "Billing address, only when the buyer answered the billing question (e.g. said it differs from shipping, or a checkout UI's 'same as shipping' checkbox — then send the shipping values verbatim). Never ask for it; omit and the payment page handles billing.",
      +  "type": "string"
      +}
    • addedInput schema / properties / billing_state
      Added value: +{
      +  "description": "Two-letter US state",
      +  "maxLength": 2,
      +  "minLength": 2,
      +  "type": "string"
      +}
    • addedInput schema / properties / billing_street1
      Added value: +{
      +  "type": "string"
      +}
    • addedInput schema / properties / billing_street2
      Added value: +{
      +  "type": "string"
      +}
    • addedInput schema / properties / billing_zip
      Added value: +{
      +  "type": "string"
      +}
  3. Changed1 schema field changed
    • addedInput schema / properties / return_url
      Added value: +{
      +  "description": "Exact URL of the page the user is on right now, IF the client application knows it (a web app embedding this tool passes its own page URL). The post-payment page shows a 'Return to <site>' button pointing here. Omit when unknown — never invent one.",
      +  "format": "uri",
      +  "type": "string"
      +}
  4. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources