Generate checkout

GET /shop/{customer}/checkout

Redirects to payment or checks payment codes

Path parameters

  • customer string Required

    Customer ID

Query parameters

  • product string Required

    Product ID

  • variant string Required

    Payment variant

  • data string

    Additional data (like Blik or SMS code)

  • discount string

    Discount code

  • amount integer

    Amount of product

  • return_url string

    URL to redirect after payment (Shop success page)

Responses

  • 404

    Product not found

  • 302

    Redirected to checkout

  • 200

    Success (mainly for checking codes)

GET /shop/{customer}/checkout
curl \
 -X GET https://shopmc.app/api/shop/{customer}/checkout?product=string&variant=string