Skip to main content
POST
/
payment-request
Get payment details for generation.
curl --request POST \
  --url https://api.markdown2pdf.ai/payment-request \
  --header 'Content-Type: application/json' \
  --data '{
  "offer_id": "<string>",
  "payment_methods": "<string>",
  "payment_context_token": "<string>"
}'
{
  "version": "<string>",
  "payment_request": {},
  "expires_at": "2023-11-07T05:31:56Z"
}

Body

application/json
offer_id
string
required

Unique identifier for the payment offer

payment_context_token
string
required

Token to identify the payment context

payment_methods
string | null

Payment method to be used

Response

Payment request details including offer ID, payment request, and QR code SVG.

payment_request
object
required

Payment request details

version
string

Version of the payment request response schema

expires_at
string<date-time> | null

Expiration time for the payment request