Retrieve Checkout Page
Retrieve a checkout page.
checkout
ID of the checkout page. String starting with checkout_.
/v1/checkout/:checkout
Retrieve Checkout Page
curl -X get 'https://sandboxapi.rapyd.net/v1/checkout/checkout_4027d17e5cfad4a87677e18478a64cee' \ -H 'access_key: your-access-key-here' \ -H 'Content-Type: application/json' \ -H 'salt: your-random-string-here' \ -H 'signature: your-calculated-signature-here' \ -H 'timestamp: your-unix-timestamp-here'
{ "status": { "error_code": "", "status": "SUCCESS", "message": "", "response_code": "", "operation_id": "6f1a7b78-8bb1-4bf4-b265-a802ed0049c3" }, "data": { "id": "checkout_4027d17e5cfad4a87677e18478a64cee", "status": "NEW", "language": "en", "org_id": "153e08b8-4bf3-4cb9-bb03-79d405eaed2a", "merchant_color": "323fff", "merchant_logo": null, "merchant_website": "https://example1234.net", "merchant_customer_support": { "url": "https://example1234.net", "email": "support@example1234.net", "phone_number": "121255551213" }, "merchant_alias": "Doc Team", "merchant_terms": "https://example1234.net/terms_and_conditions", "merchant_privacy_policy": "https://example1234.net/privacy_policy", "page_expiration": 1764149335, "redirect_url": "https://sandboxcheckout.rapyd.net/?token=checkout_4027d17e5cfad4a87677e18478a64cee", "region": "EMEA", "geo_country": "IL", "merchant_main_button": "place_your_order", "recurrence_type": null, "cancel_checkout_url": "https://example1234.net", "complete_checkout_url": "https://example1234.net", "country": "SG", "currency": "SGD", "amount": 100.25, "payment": { "id": null, "amount": 100.25, "original_amount": 0, "is_partial": false, "currency_code": "SGD", "country_code": "SG", "status": null, "description": "Payment via Checkout", "merchant_reference_id": "2025-11-02a", "customer_token": "cus_4e25112ac20e144ad073a614dc46934b", "payment_method": null, "payment_method_data": {}, "expiration": 0, "captured": false, "refunded": false, "refunded_amount": 0, "receipt_email": null, "redirect_url": null, "complete_payment_url": "http://complete.rapyd.net", "error_payment_url": "http://error.rapyd.net", "receipt_number": null, "flow_type": null, "address": null, "statement_descriptor": null, "transaction_id": null, "created_at": 0, "updated_at": 0, "metadata": null, "failure_code": null, "failure_message": null, "paid": false, "paid_at": 0, "dispute": null, "refunds": null, "order": null, "outcome": null, "visual_codes": {}, "textual_codes": {}, "instructions": {}, "ewallet_id": null, "ewallets": [], "payment_method_options": {}, "payment_method_type": null, "payment_method_type_category": null, "fx_rate": null, "merchant_requested_currency": null, "merchant_requested_amount": null, "fixed_side": null, "payment_fees": null, "invoice": null, "escrow": null, "group_payment": null, "cancel_reason": null, "initiation_type": null, "mid": null, "next_action": "not_applicable", "merchant_ewallet": null }, "payment_method_type": null, "payment_method_type_categories": null, "payment_method_types_include": [ "sg_grabpay_ewallet" ], "payment_method_types_exclude": null, "account_funding_transaction": null, "customer": "cus_4e25112ac20e144ad073a614dc46934b", "custom_elements": { "hide_save_card": false, "save_card_default": false, "display_description": false, "payment_fees_display": true, "merchant_currency_only": false, "billing_address_collect": false, "dynamic_currency_conversion": false }, "timestamp": 1762939735, "payment_expiration": null, "cart_items": [], "escrow": null, "escrow_release_days": null, "require_card_cvv": false, "payment_method_types": [ { "category": "ewallet", "order": 0, "types": [ { "type": "sg_grabpay_ewallet", "mapping": null, "order": 0, "image": "https://iconslib.rapyd.net/checkout/sg_grabpay_ewallet.png", "instructions": [], "name": "GrabPay eWallet", "fields": [ { "name": "number_type", "type": "string", "regex": "(fpan|tpan)", "description": "Determining if number is funding PAN or token PAN", "is_required": false } ], "supported_currencies": [ "SGD" ], "payment_method_options": [ { "name": "tavv", "type": "String", "regex": null, "description": "Token Authentication Verification Value represented as a 20-byte value that is base64 encoded.", "is_required": false, "is_updatable": false } ], "payment_options": [], "supported_digital_wallet_providers": [], "min_amount": null, "max_amount": null, "authorization_flow": false, "is_conditional": false, "supports_subscription": true, "is_mobile_money": false, "image_base64": null, "is_crypto": false, "is_redirect": false } ] } ], "customer_payment_methods": [] } }
Bad Request - Hosted Page Not Found
curl -X get 'https://sandboxapi.rapyd.net/v1/checkout/checkout_408606a46b1e1e60507a2b2fc578143' \ -H 'access_key: your-access-key-here' \ -H 'Content-Type: application/json' \ -H 'salt: your-random-string-here' \ -H 'signature: your-calculated-signature-here' \ -H 'timestamp: your-unix-timestamp-here'
{ "status": { "error_code": "ERROR_GET_HOSTED_PAGE_PAYMENT", "status": "ERROR", "message": "The request tried to retrieve a hosted page, but the page was not found. The request was rejected. Corrective action: Use the ID of a valid hosted page.", "response_code": "ERROR_GET_HOSTED_PAGE_PAYMENT", "operation_id": "a6111d09-de8a-4ca6-99e2-9fc185a95f89" } }
Unauthorized
curl -X get 'https://sandboxapi.rapyd.net/v1/checkout/checkout_408606a46b1e1e60507a2b2fc578143' \ -H 'access_key: your-access-key-here' \ -H 'Content-Type: application/json' \ -H 'salt: your-random-string-here' \ -H 'signature: your-calculated-signature-here' \ -H 'timestamp: your-unix-timestamp-here'
{ "status": { "error_code": "UNAUTHENTICATED_API_CALL", "status": "ERROR", "message": "The request was rejected due to an authentication issue. Corrective action: Check the status of your account in the 'Account Details' page of the Client Portal.", "response_code": "UNAUTHENTICATED_API_CALL", "operation_id": "034ff9bc-e27c-405b-8f8d-437becbc2358" } }