Skip to main content

Documentation

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_408606a46b1e1e60507a2b2fc578143c
    -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": "9d2905e6-0c02-4083-8a8f-c4321f388ffc"
        },
        "data": {
            "id": "checkout_408606a46b1e1e60507a2b2fc578143c",
            "status": "NEW",
            "language": "en",
            "merchant_color": "323fff",
            "merchant_logo": null,
            "merchant_website": "https://rapyd.net",
            "merchant_customer_support": {},
            "merchant_alias": "Rapyd",
            "merchant_terms": null,
            "merchant_privacy_policy": null,
            "page_expiration": 1632643036,
            "redirect_url": "https://sandboxcheckout.rapyd.net?token=checkout_408606a46b1e1e60507a2b2fc578143c",
            "merchant_main_button": "place_your_order",
            "cancel_checkout_url": "https://rapyd.net",
            "complete_checkout_url": "https://rapyd.net",
            "country": "SG",
            "currency": "SGD",
            "amount": 123.45,
            "payment": {
                "id": null,
                "amount": 123.45,
                "original_amount": 0,
                "is_partial": false,
                "currency_code": "SGD",
                "country_code": "SG",
                "status": null,
                "description": "Payment via Checkout",
                "merchant_reference_id": "0912-2021",
                "customer_token": null,
                "payment_method_data": {},
                "expiration": 1632027189,
                "captured": false,
                "refunded": false,
                "refunded_amount": 0,
                "receipt_email": null,
                "redirect_url": null,
                "complete_payment_url": "http://example.com/complete",
                "error_payment_url": "http://example.com/error",
                "receipt_number": null,
                "flow_type": null,
                "address": null,
                "statement_descriptor": null,
                "transaction_id": null,
                "created_at": 0,
                "updated_at": 0,
                "metadata": {
                    "merchant_defined": true
                },
                "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": "customer_present",
                "mid": null,
                "next_action": "not_applicable"
            },
            "payment_method_type": null,
            "payment_method_type_categories": null,
            "payment_method_types_include": [
                "sg_grabpay_ewallet"
            ],
            "payment_method_types_exclude": null,
            "customer": null,
            "custom_elements": {
                "save_card_default": false,
                "display_description": false,
                "payment_fees_display": true,
                "merchant_currency_only": false,
                "billing_address_collect": false,
                "dynamic_currency_conversion": false
            },
            "timestamp": 1631433436,
            "payment_expiration": null,
            "cart_items": [],
            "escrow": null,
            "escrow_release_days": null,
            "payment_method_types": [
                {
                    "category": "ewallet",
                    "order": 0,
                    "types": [
                        {
                            "type": "sg_grabpay_ewallet",
                            "card_type": null,
                            "network": null,
                            "order": 0,
                            "image": "https://iconslib.rapyd.net/checkout/sg_grabpay_ewallet.png",
                            "instructions": [],
                            "name": "GrabPay eWallet",
                            "fields": [],
                            "supported_currencies": [
                                "SGD"
                            ],
                            "payment_method_options": [],
                            "supported_digital_wallet_providers": [],
                            "min_amount": null,
                            "max_amount": null,
                            "is_redirect": false
                        }
                    ]
                }
            ]
        }
    }