Update a Checkout
Update a dynamic checkout page for integration into your service.
PATCH /checkout/update/{checkoutCode}
Headers
Name
Value
Content-Type
application/json
Accept
application/json
X-TX-AppId
YOUR-APP-ID
X-TX-Signature
HMAC SHA-256 content hash View
URL Params
Name
Type
Description
Required
{checkoutCode}
string
The unique identifier for the transaction to update.
Required
Body
{
  "name": "checkout",
  "pricing": "118.95",
  "pricingCurrency": {
    "currencyId": 201,
    "symbol": "USDT",
    "chainName": "ETH",
    "currencyType": "CRYPTO"
  },
  "receiveCurrency": [
    {
      "currencyId": 201,
      "symbol": "USDT",
      "chainName": "ETH"
    },
    {
      "currencyId": 202,
      "symbol": "USDC",
      "chainName": "ETH"
    }
  ],
  "recipients": [
    "0x5FbE74A283f7954f10AA04C2eDf55578811aeb03"
  ],
  "redirectUrl": "https://ok.my-service-domain",
  "backToUrl": "https://order.my-service-domain"
}Request
curl -X PATCH https://api.tradpay.io/v1/checkout/update/4cADM2G7UJfXXjJlXsC9t9NL \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "X-TX-AppId: YOUR-APP-ID" \
    -H "X-TX-Signature: SIGNATURE-HASH" \
    -d '{"name":"checkout","pricing":"118.95","pricingCurrency":{"currencyId":201,"chainName":"ETH","currencyType":"CRYPTO"},"receiveCurrency":[{"currencyId":201,"chainName":"ETH"},{"currencyId":202,"chainName":"ETH"}],"recipients":["0x5FbE74A283f7954f10AA04C2eDf55578811aeb03"],"redirectUrl":"https://ok.my-service-domain","backToUrl":"https://order.my-service-domain"}'Response
{
  "code": 200,
  "msg": "OK",
  "status": "success",
  "result": {
    "checkoutCode": "4cADM2G7UJfXXjJlXsC9t9NL",
    "checkoutLink": "https://pay.tradpay.io/checkout/4cADM2G7UJfXXjJlXsC9t9NL"
  }
}Last updated
