TanqoryDocs

appPurchaseOneTimeCreate

  • Mutation
  • Apps and platform

Creates a one-time charge from the calling app to the store. The merchant approves it at the returned confirmationUrl; any problem comes back in userErrors.

Arguments

ArgumentTypeRequiredDefault
nameString!Required
priceMoneyInput!Required
returnUrlURL!Required
testBooleanOptionalfalse

Returns

AppPurchaseOneTimeCreatePayload What appPurchaseOneTimeCreate returns: the new appPurchaseOneTime, the confirmationUrl for the merchant, and any userErrors.

FieldTypeDescription
appPurchaseOneTimeAppPurchaseOneTime
confirmationUrlURL
userErrors[UserError!]!

Example request

A starting point: required arguments as variables and a few fields of the result. Replace the placeholders.

Set STORE_ID and TANQORY_ACCESS_TOKEN in your environment first (Make your first API call).

curl
curl -X POST "https://api.tanqory.com/admin/2026-10/stores/$STORE_ID/graphql" \
  -H "Authorization: Bearer $TANQORY_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  --data '{"query":"mutation AppPurchaseOneTimeCreate($name: String!, $price: MoneyInput!, $returnUrl: URL!) {\n  appPurchaseOneTimeCreate(name: $name, price: $price, returnUrl: $returnUrl) {\n    appPurchaseOneTime { id }\n    confirmationUrl\n    userErrors {\n      field\n      message\n    }\n  }\n}","variables":{"name":"","price":{"amount":"","currencyCode":"AED"},"returnUrl":""}}'

Built from commit c0b3fb3fdef7 · API version 2026-10