{
  "openapi": "3.1.0",
  "info": {
    "title": "Dime Partner API v2 — Dime Bridge",
    "version": "",
    "description": "Dime Bridge lets a marketplace take payments on behalf of the merchants it\nhas linked. Invite a merchant with a Bridge request, send them through a\nshort-lived Bridge link to approve, then name the linked merchant on a\npayment with `bridge.destination`, or pay it with a Bridge transfer.\n\nEvery call uses your own API key (`X-Dime-Client` plus its secret key as a\nBearer token). Dime Bridge is enabled per account\nby Dime support.\n"
  },
  "servers": [
    {
      "url": "https://sandbox.api.dimepay.app/dapi/v2",
      "description": "Sandbox — safe for testing, no real money moves"
    }
  ],
  "security": [
    {
      "ClientKey": [],
      "SecretKey": []
    }
  ],
  "tags": [
    {
      "name": "Dime Bridge",
      "description": "Linked merchants, Bridge requests, Bridge links and Bridge transfers."
    }
  ],
  "paths": {
    "/bridge/requests": {
      "post": {
        "tags": [
          "Dime Bridge"
        ],
        "summary": "Create a Bridge request",
        "operationId": "createBridgeRequest",
        "description": "Invites a merchant to link to your marketplace. Next, create a Bridge\nlink and send the merchant to its `url`.\n\n`prefill` is shown already filled in when a new merchant signs up, so\nthey do not retype what you know. Each field is checked against Dime's\nformats and lists (see `BridgePrefill`); an invalid value rejects the\nrequest. A prefilled `mcc` is still reviewed by Dime.\n\n`status` is `pending` until the merchant approves or declines. The\nresponse never says whether the email already has a Dime account.\nRequests expire after 30 days.\n",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateBridgeRequest"
              },
              "examples": {
                "vendor": {
                  "value": {
                    "email": "vendor@example.com",
                    "account_type": "standard",
                    "capabilities": {
                      "payments": true,
                      "transfers": true
                    },
                    "prefill": {
                      "business_name": "Jane's Store",
                      "business_type": "SOLE_TRADER",
                      "first_name": "Jane",
                      "last_name": "Doe",
                      "phone_number": "+18765550123",
                      "website_url": "https://janestore.example",
                      "mcc": "5734",
                      "address_street": "1 Market St",
                      "address_city": "Kingston",
                      "address_country": "JM"
                    },
                    "return_url": "https://marketplace.example/dashboard",
                    "refresh_url": "https://marketplace.example/bridge/refresh?vendor=v_123",
                    "metadata": {
                      "vendor_id": "v_123"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The request was created.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BridgeRequest"
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "missingEmail": {
                    "value": {
                      "error": {
                        "type": "invalid_request_error",
                        "code": "parameter_missing",
                        "message": "email is required.",
                        "param": "email"
                      }
                    }
                  },
                  "invalidPrefill": {
                    "summary": "A prefill value failed its format or list check",
                    "value": {
                      "error": {
                        "type": "invalid_request_error",
                        "code": "parameter_invalid",
                        "message": "prefill.phone_number is not a valid phone number for JM.",
                        "param": "prefill.phone_number"
                      }
                    }
                  },
                  "express": {
                    "summary": "Express linked merchants are not available yet",
                    "value": {
                      "error": {
                        "type": "invalid_request_error",
                        "code": "parameter_unsupported",
                        "message": "Express linked merchants are not available yet. Use account_type \"standard\".",
                        "param": "account_type"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/BridgeDisabled"
          }
        }
      },
      "get": {
        "tags": [
          "Dime Bridge"
        ],
        "summary": "List Bridge requests",
        "operationId": "listBridgeRequests",
        "description": "Your Bridge requests, newest first. Cursor-paginated.",
        "parameters": [
          {
            "$ref": "#/components/parameters/Limit"
          },
          {
            "$ref": "#/components/parameters/StartingAfterRequest"
          },
          {
            "$ref": "#/components/parameters/EndingBeforeRequest"
          },
          {
            "name": "status",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "pending",
                "approved",
                "declined",
                "cancelled",
                "expired"
              ]
            },
            "example": "pending"
          },
          {
            "name": "email",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "email"
            },
            "example": "vendor@example.com"
          }
        ],
        "responses": {
          "200": {
            "description": "A page of Bridge requests.",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/ListEnvelope"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/BridgeRequest"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          }
        }
      }
    },
    "/bridge/requests/{token}": {
      "get": {
        "tags": [
          "Dime Bridge"
        ],
        "summary": "Retrieve a Bridge request",
        "operationId": "retrieveBridgeRequest",
        "parameters": [
          {
            "$ref": "#/components/parameters/RequestId"
          }
        ],
        "responses": {
          "200": {
            "description": "The request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BridgeRequest"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      }
    },
    "/bridge/requests/{token}/cancel": {
      "post": {
        "tags": [
          "Dime Bridge"
        ],
        "summary": "Cancel a Bridge request",
        "operationId": "cancelBridgeRequest",
        "description": "Cancels a `pending` request. Its unopened links stop working.",
        "parameters": [
          {
            "$ref": "#/components/parameters/RequestId"
          }
        ],
        "responses": {
          "200": {
            "description": "The cancelled request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BridgeRequest"
                }
              }
            }
          },
          "400": {
            "description": "The request is no longer pending.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      }
    },
    "/bridge/requests/{token}/links": {
      "post": {
        "tags": [
          "Dime Bridge"
        ],
        "summary": "Create a Bridge link",
        "operationId": "createBridgeLink",
        "description": "Returns a URL to redirect the merchant's browser to. On a co-branded\npage showing your name and logo:\n\n- **Already a Dime merchant:** they sign in to Dime as the invited\n  email (or are asked to sign out if they are signed in as someone\n  else), pick which of their stores to link, confirm with a code\n  emailed to the invited address, and approve or decline.\n- **No Dime account:** they sign up with your `prefill`, agree to the\n  link, and complete onboarding. The link is created when they submit\n  onboarding (`bridge_merchant.activated`, with `payments_enabled:\n  false`). When Dime approves them, you receive\n  `bridge_merchant.updated` with `payments_enabled: true`.\n\nAfterwards they are sent to your `return_url`. Signing in or out on\nthe way does not use up the link.\n\nA Bridge link:\n\n- **works once.** Opening it uses it up.\n- **expires** after 10 minutes if not opened.\n- **is replaced** by the next one you create: earlier unopened links\n  stop working.\n\nIf the merchant opens a used or expired link, they are sent to your\n`refresh_url`. Handle that route by creating a new link and\nredirecting them to it.\n",
        "parameters": [
          {
            "$ref": "#/components/parameters/RequestId"
          }
        ],
        "responses": {
          "201": {
            "description": "The link.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BridgeLink"
                }
              }
            }
          },
          "400": {
            "description": "The request is no longer pending, or has expired.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      }
    },
    "/bridge/merchants": {
      "get": {
        "tags": [
          "Dime Bridge"
        ],
        "summary": "List linked merchants",
        "operationId": "listBridgeMerchants",
        "description": "Merchants linked to your marketplace, newest first. Cursor-paginated.",
        "parameters": [
          {
            "$ref": "#/components/parameters/Limit"
          },
          {
            "$ref": "#/components/parameters/StartingAfterMerchant"
          },
          {
            "$ref": "#/components/parameters/EndingBeforeMerchant"
          },
          {
            "name": "status",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "active",
                "paused",
                "revoked"
              ]
            },
            "example": "active"
          }
        ],
        "responses": {
          "200": {
            "description": "A page of linked merchants.",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/ListEnvelope"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/BridgeMerchant"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          }
        }
      }
    },
    "/bridge/merchants/{token}": {
      "get": {
        "tags": [
          "Dime Bridge"
        ],
        "summary": "Retrieve a linked merchant",
        "operationId": "retrieveBridgeMerchant",
        "parameters": [
          {
            "$ref": "#/components/parameters/BridgeMerchantId"
          }
        ],
        "responses": {
          "200": {
            "description": "The linked merchant.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BridgeMerchant"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      }
    },
    "/bridge/merchants/{token}/revoke": {
      "post": {
        "tags": [
          "Dime Bridge"
        ],
        "summary": "Revoke a linked merchant",
        "operationId": "revokeBridgeMerchant",
        "description": "Ends the link. New payments and transfers to it are refused; existing\npayments are unaffected. The linked merchant can also revoke from its\ndashboard. To link again, send a new Bridge request.\n",
        "parameters": [
          {
            "$ref": "#/components/parameters/BridgeMerchantId"
          }
        ],
        "responses": {
          "200": {
            "description": "The revoked link.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BridgeMerchant"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      }
    },
    "/bridge/transfers": {
      "post": {
        "tags": [
          "Dime Bridge"
        ],
        "summary": "Create a Bridge transfer",
        "operationId": "createBridgeTransfer",
        "description": "Moves money from your wallet to a linked merchant's wallet. Use it to\npay several merchants from one payment: take the payment as merchant\nof record, then send one transfer per merchant.\n\nThe transfer is returned with `status: pending` and becomes\n`complete` once the money has moved, normally within seconds. You\nreceive `bridge_transfer.created` at that point. A pending transfer\nalready counts against your available balance.\n\n`source_transaction_id` is required: the transfer is shown under that\npayment in your transaction details, and doesn't add rows to your\ntransaction list. The linked merchant gets an order and an incoming\ntransaction from you (`destination_transaction`); send `items` to\nshow what the transfer pays for on that order.\n\n- The link must have granted `transfers`.\n- `currency` must match; there is no conversion.\n- Your available balance must cover `amount`. Funds still on hold do\n  not count.\n- Transfers for the `source_transaction_id` payment cannot add up to\n  more than you netted from it.\n\nRequires an `Idempotency-Key` header. Sending the same key again\nreturns the original transfer and moves no money. Reusing a key\nwith different parameters returns `409`.\n",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "description": "A unique value per transfer, up to 255 characters.",
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "example": "payout-order-1234-vendor-1"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateBridgeTransfer"
              },
              "examples": {
                "payout": {
                  "value": {
                    "destination": "brm_9CKxgfQk_jDKOHNVm_H8696T87_2alsOAP",
                    "amount": 25,
                    "currency": "JMD",
                    "source_transaction_id": "txn_20261027_PBFpP02",
                    "description": "Order 1234 vendor payout"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The transfer. A replay returns the original.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BridgeTransfer"
                }
              }
            }
          },
          "400": {
            "description": "The transfer was rejected.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "noSource": {
                    "value": {
                      "error": {
                        "type": "invalid_request_error",
                        "code": "parameter_missing",
                        "message": "source_transaction_id is required: the token of the payment this transfer pays out from.",
                        "param": "source_transaction_id"
                      }
                    }
                  },
                  "noKey": {
                    "value": {
                      "error": {
                        "type": "invalid_request_error",
                        "code": "parameter_missing",
                        "message": "An Idempotency-Key header is required for bridge transfers.",
                        "param": "Idempotency-Key"
                      }
                    }
                  },
                  "insufficient": {
                    "value": {
                      "error": {
                        "type": "invalid_request_error",
                        "code": "insufficient_balance",
                        "message": "Insufficient available JMD balance for this transfer.",
                        "param": "amount"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "description": "Dime Bridge is not enabled, or the link has not granted `transfers`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "description": "The `Idempotency-Key` was used with different parameters.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "reused": {
                    "value": {
                      "error": {
                        "type": "idempotency_error",
                        "code": "idempotency_conflict",
                        "message": "This Idempotency-Key was already used with different parameters.",
                        "param": "Idempotency-Key"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "get": {
        "tags": [
          "Dime Bridge"
        ],
        "summary": "List Bridge transfers",
        "operationId": "listBridgeTransfers",
        "description": "Your transfers, newest first. Cursor-paginated.",
        "parameters": [
          {
            "$ref": "#/components/parameters/Limit"
          },
          {
            "$ref": "#/components/parameters/StartingAfterTransfer"
          },
          {
            "$ref": "#/components/parameters/EndingBeforeTransfer"
          },
          {
            "name": "destination",
            "in": "query",
            "description": "Only transfers to this linked merchant, by its `token`.",
            "schema": {
              "type": "string"
            },
            "example": "brm_9CKxgfQk_jDKOHNVm_H8696T87_2alsOAP"
          },
          {
            "name": "source_transaction_id",
            "in": "query",
            "description": "Only transfers paid out of this payment, by its `token`.",
            "schema": {
              "type": "string"
            },
            "example": "txn_20261027_PBFpP02"
          }
        ],
        "responses": {
          "200": {
            "description": "A page of transfers.",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/ListEnvelope"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/BridgeTransfer"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          }
        }
      }
    },
    "/bridge/transfers/{token}": {
      "get": {
        "tags": [
          "Dime Bridge"
        ],
        "summary": "Retrieve a Bridge transfer",
        "operationId": "retrieveBridgeTransfer",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "description": "The transfer's `token`.",
            "schema": {
              "type": "string"
            },
            "example": "btr_ghUDrzcz_8WNcGewb_HC7S6U6-_gR-3I3w"
          }
        ],
        "responses": {
          "200": {
            "description": "The transfer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BridgeTransfer"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      }
    },
    "/bridge/transfers/{token}/reversals": {
      "post": {
        "tags": [
          "Dime Bridge"
        ],
        "summary": "Reverse a Bridge transfer",
        "operationId": "createBridgeTransferReversal",
        "description": "Moves all or part of a transfer back from the linked merchant's\nwallet to yours. Leave out `amount` to reverse everything not yet\nreversed. You can make several partial reversals, up to the transfer\namount; once they have all moved, the transfer shows\n`reversed: true` and status `reversed`.\n\nA reversal works like a refund on the linked merchant's side: it gets\na refund transaction (`PARTIAL_REFUND`, or `REFUND` once the whole\ntransfer is reversed) on the transfer's order, pointing at the\ntransfer's transaction. You see it under the original payment. Send\n`items` to show what is being reversed. Payment refund endpoints\n(`PUT /payments/refund`) do not accept transfer transactions.\n\nOnly a `complete` transfer can be reversed. The reversal is returned\nwith `status: pending` and becomes `complete` once the money has\nmoved, normally within seconds; you receive\n`bridge_transfer.reversed` then. `amount_reversed` on the transfer\nincludes reversals still pending.\n\n- The linked merchant's available balance must cover `amount`. If\n  it has already been spent or withdrawn, the request fails with\n  `insufficient_balance` and nothing moves.\n- Works even if the link was revoked since the transfer.\n- Reversed money can be transferred again for the transfer's\n  `source_transaction_id` payment.\n\nRequires an `Idempotency-Key` header. Sending the same key again\nreturns the original reversal and moves no money. Reusing a key with\na different `amount` returns `409`.\n",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "description": "The transfer's `token`.",
            "schema": {
              "type": "string"
            },
            "example": "btr_ghUDrzcz_8WNcGewb_HC7S6U6-_gR-3I3w"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "description": "A unique value per reversal, up to 255 characters.",
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "example": "reverse-order-1234-vendor-1"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateBridgeTransferReversal"
              },
              "examples": {
                "partial": {
                  "summary": "Take back 10 of a 25 transfer",
                  "value": {
                    "amount": 10,
                    "description": "Order 1234 item returned"
                  }
                },
                "full": {
                  "summary": "Take back everything not yet reversed",
                  "value": {}
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The reversal. A replay returns the original.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BridgeTransferReversal"
                }
              }
            }
          },
          "400": {
            "description": "The reversal was rejected.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "tooMuch": {
                    "value": {
                      "error": {
                        "type": "invalid_request_error",
                        "code": "parameter_invalid",
                        "message": "Reversal amount 30.00 exceeds the 15.00 not yet reversed.",
                        "param": "amount"
                      }
                    }
                  },
                  "alreadyReversed": {
                    "value": {
                      "error": {
                        "type": "invalid_request_error",
                        "code": "parameter_invalid",
                        "message": "This transfer has already been fully reversed.",
                        "param": "amount"
                      }
                    }
                  },
                  "insufficient": {
                    "value": {
                      "error": {
                        "type": "invalid_request_error",
                        "code": "insufficient_balance",
                        "message": "The linked merchant's available JMD balance cannot cover this reversal.",
                        "param": "amount"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "description": "The `Idempotency-Key` was used with different parameters.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "get": {
        "tags": [
          "Dime Bridge"
        ],
        "summary": "List a transfer's reversals",
        "operationId": "listBridgeTransferReversals",
        "description": "The transfer's reversals, newest first. Cursor-paginated.",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "description": "The transfer's `token`.",
            "schema": {
              "type": "string"
            },
            "example": "btr_ghUDrzcz_8WNcGewb_HC7S6U6-_gR-3I3w"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 10
            }
          },
          {
            "name": "starting_after",
            "in": "query",
            "description": "The `token` of the last reversal on the previous page.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "ending_before",
            "in": "query",
            "description": "The `token` of the first reversal on the page you have.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A page of reversals.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "object": {
                      "type": "string",
                      "const": "list"
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/BridgeTransferReversal"
                      }
                    },
                    "has_more": {
                      "type": "boolean"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "ClientKey": {
        "type": "apiKey",
        "in": "header",
        "name": "X-Dime-Client",
        "description": "Your client key (`ck_…`). Use a sandbox key when testing. Sent together with the secret key."
      },
      "SecretKey": {
        "type": "http",
        "scheme": "bearer",
        "description": "The secret key (`sk_…`) that belongs to your client key, sent as\n`Authorization: Bearer sk_…`. Server-side only: never put it in a\nbrowser, mobile app or source control.\n"
      }
    },
    "parameters": {
      "RequestId": {
        "name": "token",
        "in": "path",
        "required": true,
        "description": "The Bridge request's `token`.",
        "schema": {
          "type": "string"
        },
        "example": "brq_ksV-MbRi_uWgDF4iD_jNf6oBHl_PIq3pl8"
      },
      "BridgeMerchantId": {
        "name": "token",
        "in": "path",
        "required": true,
        "description": "The linked merchant's `token`.",
        "schema": {
          "type": "string"
        },
        "example": "brm_9CKxgfQk_jDKOHNVm_H8696T87_2alsOAP"
      },
      "StartingAfterRequest": {
        "name": "starting_after",
        "in": "query",
        "description": "The `token` of the last request on the previous page.",
        "schema": {
          "type": "string"
        }
      },
      "EndingBeforeRequest": {
        "name": "ending_before",
        "in": "query",
        "description": "The `token` of the first request on the page you have.",
        "schema": {
          "type": "string"
        }
      },
      "StartingAfterMerchant": {
        "name": "starting_after",
        "in": "query",
        "description": "The `token` of the last linked merchant on the previous page.",
        "schema": {
          "type": "string"
        }
      },
      "EndingBeforeMerchant": {
        "name": "ending_before",
        "in": "query",
        "description": "The `token` of the first linked merchant on the page you have.",
        "schema": {
          "type": "string"
        }
      },
      "StartingAfterTransfer": {
        "name": "starting_after",
        "in": "query",
        "description": "The `token` of the last transfer on the previous page.",
        "schema": {
          "type": "string"
        }
      },
      "EndingBeforeTransfer": {
        "name": "ending_before",
        "in": "query",
        "description": "The `token` of the first transfer on the page you have.",
        "schema": {
          "type": "string"
        }
      },
      "Limit": {
        "name": "limit",
        "in": "query",
        "required": false,
        "description": "How many records to return, 1–100.",
        "schema": {
          "type": "integer",
          "minimum": 1,
          "maximum": 100,
          "default": 10
        }
      }
    },
    "responses": {
      "BridgeDisabled": {
        "description": "Dime Bridge is not enabled for your account.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            },
            "examples": {
              "disabled": {
                "value": {
                  "error": {
                    "type": "invalid_request_error",
                    "code": "forbidden",
                    "message": "Dime Bridge is not enabled for this merchant."
                  }
                }
              }
            }
          }
        }
      },
      "BadRequest": {
        "description": "The request was rejected.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            },
            "examples": {
              "missing": {
                "summary": "A required field was absent",
                "value": {
                  "error": {
                    "type": "invalid_request_error",
                    "code": "parameter_missing",
                    "message": "Currency is required.",
                    "param": "currency"
                  }
                }
              }
            }
          }
        }
      },
      "Unauthorized": {
        "description": "The client key or secret key was missing, not recognized, or the two do not belong to the same key.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            },
            "examples": {
              "unauthorized": {
                "value": {
                  "error": {
                    "type": "invalid_request_error",
                    "code": "unauthorized",
                    "message": "No API key provided."
                  }
                }
              },
              "secretKeyMissing": {
                "summary": "Client key sent without its secret key",
                "value": {
                  "error": {
                    "type": "invalid_request_error",
                    "code": "unauthorized",
                    "message": "No secret key provided. Send your secret key as \"Authorization: Bearer <secret key>\" along with the X-Dime-Client header."
                  }
                }
              }
            }
          }
        }
      },
      "NotFound": {
        "description": "No record matches the token in the request. A database id in a URL\nalso ends here: v2 looks records up by token only.\n",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            },
            "examples": {
              "missing": {
                "value": {
                  "error": {
                    "type": "invalid_request_error",
                    "code": "resource_missing",
                    "message": "No such transaction: txn_20261112_ZZZZZZZ",
                    "param": "token"
                  }
                }
              }
            }
          }
        }
      }
    },
    "schemas": {
      "Capabilities": {
        "type": "object",
        "description": "What the linked merchant allows you to do.",
        "properties": {
          "payments": {
            "type": "boolean",
            "description": "Take payments naming this merchant in `bridge.destination`.",
            "example": true
          },
          "transfers": {
            "type": "boolean",
            "description": "Send it Bridge transfers.",
            "example": true
          }
        }
      },
      "CreateBridgeRequest": {
        "type": "object",
        "required": [
          "email"
        ],
        "properties": {
          "email": {
            "type": "string",
            "format": "email",
            "description": "The merchant's email. Stored lowercased.",
            "example": "vendor@example.com"
          },
          "account_type": {
            "type": "string",
            "enum": [
              "standard",
              "express"
            ],
            "default": "standard",
            "description": "`standard` is a full Dime merchant. `express`, a merchant that\nexists only within your marketplace, is reserved and currently\nreturns `parameter_unsupported`.\n",
            "example": "standard"
          },
          "capabilities": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Capabilities"
              }
            ],
            "description": "At least one must be `true`. Defaults to payments only."
          },
          "prefill": {
            "$ref": "#/components/schemas/BridgePrefill"
          },
          "return_url": {
            "type": "string",
            "format": "uri",
            "description": "Where the merchant goes when they finish. `https` in production.",
            "example": "https://marketplace.example/dashboard"
          },
          "refresh_url": {
            "type": "string",
            "format": "uri",
            "description": "Where the merchant goes when a link was already used or has expired. Create a new link there.",
            "example": "https://marketplace.example/bridge/refresh?vendor=v_123"
          },
          "metadata": {
            "type": "object",
            "additionalProperties": true,
            "description": "Your own key-value data, returned as you sent it.",
            "example": {
              "vendor_id": "v_123"
            }
          }
        }
      },
      "BridgePrefill": {
        "type": "object",
        "description": "Details you already know. Every field is optional. Unknown keys, `null`\nand empty strings are dropped. Values are checked and normalized; the\nfirst invalid field rejects the request with `400 parameter_invalid`\nand `param` set to `prefill.<field>`. `<`, `>` and control characters\nare rejected everywhere. See \"Prefill fields\" in the Dime Bridge guide.\n",
        "properties": {
          "business_name": {
            "type": "string",
            "maxLength": 100,
            "example": "Jane's Store"
          },
          "business_type": {
            "type": "string",
            "enum": [
              "SOLE_TRADER",
              "PARTNERSHIP",
              "LIMITED_LIABILITY_COMPANY",
              "NON_PROFIT"
            ],
            "description": "Case-insensitive; spaces and hyphens count as underscores. Stored upper case.",
            "example": "SOLE_TRADER"
          },
          "legal_name": {
            "type": "string",
            "maxLength": 100,
            "example": "Jane Doe Trading Ltd"
          },
          "first_name": {
            "type": "string",
            "maxLength": 50,
            "description": "Letters, spaces, apostrophes, hyphens and periods.",
            "example": "Jane"
          },
          "last_name": {
            "type": "string",
            "maxLength": 50,
            "description": "Letters, spaces, apostrophes, hyphens and periods.",
            "example": "Doe"
          },
          "phone_number": {
            "type": "string",
            "description": "Must be valid for its country's numbering plan. Send E.164\n(`+18765550123`); a national number is accepted only together\nwith `address_country` or `country`. Stored as E.164.\n",
            "example": "+18765550123"
          },
          "website_url": {
            "type": "string",
            "format": "uri",
            "maxLength": 2048,
            "description": "Absolute `https://` or `http://` URL on a public domain name. No IP addresses, localhost or credentials.",
            "example": "https://janestore.example"
          },
          "mcc": {
            "type": "string",
            "pattern": "^\\d{4}$",
            "description": "A supported merchant category code. Dime still reviews a prefilled MCC.",
            "enum": [
              "0742",
              "0763",
              "0780",
              "1520",
              "1711",
              "1731",
              "1740",
              "1750",
              "1761",
              "1771",
              "1799",
              "2741",
              "4011",
              "4111",
              "4112",
              "4119",
              "4121",
              "4131",
              "4214",
              "4215",
              "4411",
              "4511",
              "4582",
              "4722",
              "4784",
              "4812",
              "4814",
              "4816",
              "4829",
              "4899",
              "4900",
              "5045",
              "5111",
              "5122",
              "5200",
              "5211",
              "5251",
              "5300",
              "5310",
              "5311",
              "5411",
              "5462",
              "5511",
              "5541",
              "5542",
              "5611",
              "5621",
              "5651",
              "5661",
              "5712",
              "5722",
              "5732",
              "5734",
              "5811",
              "5812",
              "5813",
              "5814",
              "5815",
              "5816",
              "5817",
              "5818",
              "5912",
              "5941",
              "5942",
              "5967",
              "5968",
              "5969",
              "7011",
              "7210",
              "7230",
              "7273",
              "7276",
              "7311",
              "7372",
              "7392",
              "7399",
              "7538",
              "7995",
              "7997",
              "8011",
              "8021",
              "8062",
              "8111",
              "8211",
              "8220",
              "8398",
              "8931",
              "8999",
              "9211",
              "9222",
              "9311",
              "9399",
              "9402"
            ],
            "example": "5734"
          },
          "country": {
            "type": "string",
            "description": "Same as `address_country`; prefer `address_country`. If both are sent they must match. Stored as alpha-2.",
            "example": "JM"
          },
          "currency": {
            "type": "string",
            "description": "Must be `USD` or the local currency of the country you send. Stored upper case.",
            "enum": [
              "AED",
              "ANG",
              "AOA",
              "ARS",
              "AUD",
              "AWG",
              "BBD",
              "BDT",
              "BGN",
              "BHD",
              "BOB",
              "BRL",
              "BSD",
              "BWP",
              "BZD",
              "CAD",
              "CHF",
              "CLP",
              "CNY",
              "COP",
              "CRC",
              "CUP",
              "CZK",
              "DKK",
              "DOP",
              "DZD",
              "EGP",
              "ETB",
              "GBP",
              "GHS",
              "GTQ",
              "GYD",
              "HKD",
              "HNL",
              "HRK",
              "HTG",
              "HUF",
              "IDR",
              "ILS",
              "INR",
              "IQD",
              "IRR",
              "JMD",
              "JOD",
              "JPY",
              "KES",
              "KHR",
              "KRW",
              "KWD",
              "KYD",
              "LAK",
              "LBP",
              "LKR",
              "LYD",
              "MAD",
              "MMK",
              "MNT",
              "MXN",
              "MYR",
              "MZN",
              "NAD",
              "NGN",
              "NIO",
              "NOK",
              "NPR",
              "NZD",
              "OMR",
              "PAB",
              "PEN",
              "PHP",
              "PKR",
              "PLN",
              "PYG",
              "QAR",
              "RON",
              "RUB",
              "RWF",
              "SAR",
              "SDG",
              "SEK",
              "SGD",
              "SRD",
              "THB",
              "TND",
              "TRY",
              "TTD",
              "TWD",
              "TZS",
              "UGX",
              "USD",
              "UYU",
              "VES",
              "VND",
              "XAF",
              "XCD",
              "XOF",
              "ZAR",
              "ZMW",
              "ZWL"
            ],
            "example": "JMD"
          },
          "address_street": {
            "type": "string",
            "maxLength": 200,
            "example": "1 Market St"
          },
          "address_city": {
            "type": "string",
            "maxLength": 100,
            "example": "Kingston"
          },
          "address_state": {
            "type": "string",
            "maxLength": 100,
            "example": "St Andrew"
          },
          "address_postal_code": {
            "type": "string",
            "maxLength": 12,
            "pattern": "^[A-Za-z0-9](?:[A-Za-z0-9 -]{0,10}[A-Za-z0-9])?$",
            "description": "Stored upper case.",
            "example": "JMAAW10"
          },
          "address_country": {
            "type": "string",
            "description": "ISO 3166-1 alpha-2 (`JM`), alpha-3 (`JAM`) or English name (`Jamaica`). Stored as alpha-2.",
            "example": "JM"
          }
        }
      },
      "BridgeRequest": {
        "type": "object",
        "properties": {
          "token": {
            "type": "string",
            "description": "Identifies the request. Use it in `/bridge/requests/{token}` URLs.",
            "example": "brq_ksV-MbRi_uWgDF4iD_jNf6oBHl_PIq3pl8"
          },
          "object": {
            "type": "string",
            "const": "bridge_request",
            "example": "bridge_request"
          },
          "email": {
            "type": "string",
            "example": "vendor@example.com"
          },
          "account_type": {
            "type": "string",
            "enum": [
              "standard",
              "express"
            ],
            "example": "standard"
          },
          "status": {
            "type": "string",
            "enum": [
              "pending",
              "approved",
              "declined",
              "cancelled",
              "expired"
            ],
            "example": "pending"
          },
          "capabilities": {
            "$ref": "#/components/schemas/Capabilities"
          },
          "prefill": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/BridgePrefill"
              },
              {
                "type": "null"
              }
            ]
          },
          "bridge_merchant": {
            "type": [
              "string",
              "null"
            ],
            "description": "The linked merchant's `token`, once approved.",
            "example": null
          },
          "return_url": {
            "type": [
              "string",
              "null"
            ],
            "example": "https://marketplace.example/dashboard"
          },
          "refresh_url": {
            "type": [
              "string",
              "null"
            ],
            "example": "https://marketplace.example/bridge/refresh?vendor=v_123"
          },
          "expires_at": {
            "type": "string",
            "format": "date-time",
            "example": "2026-12-11T15:04:05.000Z"
          },
          "resolved_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "example": null
          },
          "metadata": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": true,
            "example": {
              "vendor_id": "v_123"
            }
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "example": "2026-11-11T15:04:05.000Z"
          }
        }
      },
      "BridgeLink": {
        "type": "object",
        "description": "A link has no token of its own and cannot be retrieved later. Its\nonly identifier is the secret in `url`, which is returned once.\n",
        "properties": {
          "object": {
            "type": "string",
            "const": "bridge_link",
            "example": "bridge_link"
          },
          "url": {
            "type": "string",
            "format": "uri",
            "description": "Send the merchant here. Works once.",
            "example": "https://portal.dimepay.app/bridge/onboard/brl_V1StGXR8Z5jdHi6BmyT2"
          },
          "bridge_request": {
            "type": "string",
            "description": "The `token` of the request the link opens.",
            "example": "brq_ksV-MbRi_uWgDF4iD_jNf6oBHl_PIq3pl8"
          },
          "expires_at": {
            "type": "string",
            "format": "date-time",
            "example": "2026-11-11T15:14:05.000Z"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "example": "2026-11-11T15:04:05.000Z"
          }
        }
      },
      "BridgeMerchant": {
        "type": "object",
        "properties": {
          "token": {
            "type": "string",
            "description": "Identifies the linked merchant. Use it as `bridge.destination` on\na payment, as a transfer's `destination`, and in\n`/bridge/merchants/{token}` URLs.\n",
            "example": "brm_9CKxgfQk_jDKOHNVm_H8696T87_2alsOAP"
          },
          "object": {
            "type": "string",
            "const": "bridge_merchant",
            "example": "bridge_merchant"
          },
          "account_type": {
            "type": "string",
            "enum": [
              "standard",
              "express"
            ],
            "example": "standard"
          },
          "status": {
            "type": "string",
            "enum": [
              "active",
              "paused",
              "revoked"
            ],
            "example": "active"
          },
          "capabilities": {
            "$ref": "#/components/schemas/Capabilities"
          },
          "payments_enabled": {
            "type": "boolean",
            "description": "`true` when the link is active, `payments` was granted, and Dime has\napproved the merchant. Check this before taking a payment.\n",
            "example": true
          },
          "merchant": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "business_name": {
                "type": [
                  "string",
                  "null"
                ],
                "example": "Jane's Store"
              },
              "logo_url": {
                "type": [
                  "string",
                  "null"
                ],
                "example": null
              },
              "country": {
                "type": [
                  "string",
                  "null"
                ],
                "example": "JM"
              }
            }
          },
          "bridge_request": {
            "type": [
              "string",
              "null"
            ],
            "description": "The `token` of the request that created the link, when there was one.",
            "example": "brq_ksV-MbRi_uWgDF4iD_jNf6oBHl_PIq3pl8"
          },
          "approved_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "example": "2026-11-11T15:20:00.000Z"
          },
          "revoked_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "example": null
          },
          "revoked_by": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "marketplace",
              "linked_merchant",
              "dime",
              null
            ],
            "example": null
          },
          "metadata": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": true,
            "example": null
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "example": "2026-11-11T15:20:00.000Z"
          }
        }
      },
      "CreateBridgeTransfer": {
        "type": "object",
        "required": [
          "destination",
          "amount",
          "currency",
          "source_transaction_id"
        ],
        "properties": {
          "destination": {
            "type": "string",
            "description": "The linked merchant's `token`. A database id is rejected with `400`.",
            "example": "brm_9CKxgfQk_jDKOHNVm_H8696T87_2alsOAP"
          },
          "amount": {
            "type": "number",
            "exclusiveMinimum": 0,
            "description": "In major units, at most two decimal places.",
            "example": 25
          },
          "currency": {
            "$ref": "#/components/schemas/Currency"
          },
          "source_transaction_id": {
            "type": "string",
            "description": "Required. The `token` of the payment this pays out from. Must be\none of your settled payments, in the same currency. The transfer\nand its reversals are shown under this payment in your\ntransaction details. A database id is rejected with `400`.\n",
            "example": "txn_20261027_PBFpP02"
          },
          "description": {
            "type": "string",
            "maxLength": 255,
            "example": "Order 1234 vendor payout"
          },
          "metadata": {
            "type": "object",
            "additionalProperties": true,
            "example": {
              "order": "1234"
            }
          },
          "items": {
            "description": "What the transfer pays for. Shown on the transfer's order in both\nmerchants' transaction lists. Their total does not have to match\n`amount`.\n",
            "type": "array",
            "maxItems": 100,
            "items": {
              "$ref": "#/components/schemas/BridgeTransferItem"
            }
          }
        }
      },
      "CreateBridgeTransferReversal": {
        "type": "object",
        "properties": {
          "amount": {
            "type": "number",
            "exclusiveMinimum": 0,
            "description": "How much to take back. Leave out to reverse everything not yet reversed.",
            "example": 10
          },
          "description": {
            "type": "string",
            "maxLength": 255,
            "example": "Order 1234 item returned"
          },
          "metadata": {
            "type": "object",
            "additionalProperties": true
          },
          "items": {
            "description": "What is being reversed. Shown on the refund transaction on both sides.",
            "type": "array",
            "maxItems": 100,
            "items": {
              "$ref": "#/components/schemas/BridgeTransferItem"
            }
          }
        }
      },
      "BridgeTransferItem": {
        "type": "object",
        "required": [
          "name",
          "price",
          "quantity"
        ],
        "properties": {
          "name": {
            "type": "string",
            "example": "Handmade mug"
          },
          "price": {
            "type": "number",
            "minimum": 0,
            "example": 12.5
          },
          "quantity": {
            "type": "integer",
            "minimum": 1,
            "example": 2
          },
          "sku": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 255,
            "example": "MUG-01"
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 255
          },
          "image_url": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 255
          },
          "external_id": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 255
          }
        }
      },
      "BridgeTransferReversal": {
        "type": "object",
        "properties": {
          "token": {
            "type": "string",
            "description": "Identifies the reversal.",
            "example": "trr_Hq3ZgP0k_Lm2VbN8x_Rt5WcY1e_Q9sDfGh"
          },
          "object": {
            "type": "string",
            "const": "bridge_transfer_reversal",
            "example": "bridge_transfer_reversal"
          },
          "transfer": {
            "type": [
              "string",
              "null"
            ],
            "description": "The `token` of the transfer this reverses.",
            "example": "btr_ghUDrzcz_8WNcGewb_HC7S6U6-_gR-3I3w"
          },
          "amount": {
            "type": "number",
            "example": 10
          },
          "currency": {
            "$ref": "#/components/schemas/Currency"
          },
          "status": {
            "type": "string",
            "enum": [
              "pending",
              "complete"
            ],
            "description": "`pending` until the money has moved, then `complete`.",
            "example": "pending"
          },
          "destination_transaction": {
            "type": [
              "string",
              "null"
            ],
            "description": "The `token` of the linked merchant's refund transaction for this reversal.",
            "example": "txn_20261027_Wd3FhK7"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BridgeTransferItem"
            }
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "example": "Order 1234 item returned"
          },
          "metadata": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": true
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "example": "2026-11-13T16:00:00.000Z"
          }
        }
      },
      "BridgeTransfer": {
        "type": "object",
        "properties": {
          "token": {
            "type": "string",
            "description": "Identifies the transfer. Use it in `/bridge/transfers/{token}` URLs.",
            "example": "btr_ghUDrzcz_8WNcGewb_HC7S6U6-_gR-3I3w"
          },
          "object": {
            "type": "string",
            "const": "bridge_transfer",
            "example": "bridge_transfer"
          },
          "destination": {
            "type": [
              "string",
              "null"
            ],
            "description": "The linked merchant's `token`.",
            "example": "brm_9CKxgfQk_jDKOHNVm_H8696T87_2alsOAP"
          },
          "amount": {
            "type": "number",
            "example": 25
          },
          "amount_reversed": {
            "type": "number",
            "description": "How much of the transfer has been reversed so far, including reversals still pending.",
            "example": 10
          },
          "reversed": {
            "type": "boolean",
            "description": "`true` once the whole transfer has been reversed.",
            "example": false
          },
          "currency": {
            "$ref": "#/components/schemas/Currency"
          },
          "status": {
            "type": "string",
            "enum": [
              "pending",
              "complete",
              "failed",
              "reversed"
            ],
            "description": "`pending` until the money has moved, then `complete`. `reversed` once the whole transfer has been reversed; a partly reversed transfer stays `complete`.",
            "example": "complete"
          },
          "source_transaction_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "The `token` of the payment this paid out from, when one was given.",
            "example": "txn_20261027_PBFpP02"
          },
          "destination_transaction": {
            "type": [
              "string",
              "null"
            ],
            "description": "The `token` of the linked merchant's incoming transaction for this transfer.",
            "example": "txn_20261027_Wd3FhK7"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BridgeTransferItem"
            }
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "example": "Order 1234 vendor payout"
          },
          "metadata": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": true,
            "example": {
              "order": "1234"
            }
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "example": "2026-11-11T16:00:00.000Z"
          }
        }
      },
      "ListEnvelope": {
        "type": "object",
        "description": "Lists are cursor-paginated. There is no total count: `has_more` reports\nwhether another page exists.\n",
        "required": [
          "object",
          "data",
          "has_more"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "list",
            "example": "list"
          },
          "data": {
            "type": "array",
            "items": {}
          },
          "has_more": {
            "type": "boolean",
            "example": true
          }
        }
      },
      "Error": {
        "type": "object",
        "required": [
          "error"
        ],
        "properties": {
          "error": {
            "type": "object",
            "required": [
              "type",
              "code",
              "message"
            ],
            "properties": {
              "type": {
                "type": "string",
                "description": "Which kind of failure occurred. Always one of four values, so\na client can branch on `type` before reading `code`.\n",
                "enum": [
                  "invalid_request_error",
                  "card_error",
                  "idempotency_error",
                  "api_error"
                ],
                "example": "invalid_request_error"
              },
              "code": {
                "type": "string",
                "example": "parameter_missing"
              },
              "message": {
                "type": "string",
                "example": "Order ID is required."
              },
              "param": {
                "type": "string",
                "description": "The field that caused the failure, when applicable.",
                "example": "id"
              }
            }
          }
        }
      },
      "Currency": {
        "type": "string",
        "enum": [
          "USD",
          "JMD",
          "GBP",
          "EUR",
          "TTD",
          "BBD",
          "XCD",
          "GYD",
          "SRD"
        ],
        "example": "JMD"
      }
    }
  }
}