BizKitHub
DokumentáciaPrieskumník APIPayment/api/v1/shop/payment/create
getPaymentVerejné API v1

/api/v1/shop/payment/create

Initializes a payment gateway session for the given order and returns a redirect URL where the customer completes the payment.

paymentgetApiV1ShopPaymentCreate

Parametre

2 v query

Parametre v query

· 2
apiKeystringPovinné

Your BizKitHub API key (passed as GET parameter).

Key format: A 32-character string matching: ^(PROD|DEV_|ROOT)[A-Za-z0-9]{28}$
Prefixes: PROD (production key), DEV_ (individual developer), ROOT (system key with no limits). Learn more

PríkladPRODPGrFxpGEtrOZfuWhnoJohUYBXuOE
hashstringPovinné

Unique order hash identifier.

Príklada1b2c3d4e5f6

Schéma odpovede

1 zdokumentovaný stavový kód

200ÚspechPayment gateway redirect URL.
gatewayUrlstringVoliteľné

URL to redirect the customer to the payment gateway. Undefined if payment could not be created.

Príkladhttps://payments.comgate.cz/client/instructions/index?id=ABC123

Ukážka odpovede

application/json
{
  "gatewayUrl": "https://payments.comgate.cz/client/instructions/index?id=ABC123"
}

Ukážka požiadavky

GET /api/v1/shop/payment/create

get
curl -X GET "https://api.bizkithub.com/api/v1/shop/payment/create?apiKey=PRODPGrFxpGEtrOZfuWhnoJohUYBXuOE&hash=a1b2c3d4e5f6" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY"

Potrebujete API kľúč?

Všetky verejné endpointy BizKitHub API sa overujú API kľúčom.

Získať API kľúč