curl --request POST \
--url https://api.stage.rocka.live/api/payments \
--header 'Content-Type: application/*+json' \
--header 'x-api-key: <api-key>' \
--data '
{
"amount": 1.24,
"currency": "EUR",
"customerId": "CID-012456789-1",
"description": "Order 1234-DS-1234",
"shopId": "d0c3ccd9-162c-497e-808b-e769aea89c58",
"paymentId": "119318-123-test-1423",
"returnUrl": "https://example.com/returnUrl"
}
'{
"id": "31739456-be7a-4ed5-bb47-1076247235c7",
"url": "https://checkout.rocka.live/?id=31739456-be7a-4ed5-bb47-1076247235c7&token=v4.local.8f-oWexxulzmRG4lriUJ1IZuKJsV_kBd9WDufvxBlYMiJZ1-losr11ZY0mDsO_sUFOfY8KLTsFd4Xig9vSxGXfU-Su0o05pcJTJs3f0V4sWjB8nCST3VrBnLUcoIxh8v9XuZnF6tylaK7qJCEr6f2dqMzphJxPaUBNEu1EcxgyEexbU3foC3j6IfJs4vZEvTgaCeqxOu1NYKjptr1ACDQB_fBymZyINyNKfWdEDMUdT-3YJpAkuiDW7y0eeaD-bH6_Q7VHw7KyiTIET3JBUf94uZSNXqcpOkuHJ_dkZGFnExF8FzWoHNev8GHVPXMeygyANlfbrBfcQG8iF3nolXSp_VaFkhmeStRS0kQ05XSofVS6OOO6WGvpdGELXF9FVgMka_m3S4TyQVMYpJK42U4tzsXpMwOjg70eW_TQ&country=EU&info_isNew=true",
"qrCode": null,
"token": "v4.local.8f-oWexxulzmRG4lriUJ1IZuKJsV_kBd9WDufvxBlYMiJZ1-losr11ZY0mDsO_sUFOfY8KLTsFd4Xig9vSxGXfU-Su0o05pcJTJs3f0V4sWjB8nCST3VrBnLUcoIxh8v9XuZnF6tylaK7qJCEr6f2dqMzphJxPaUBNEu1EcxgyEexbU3foC3j6IfJs4vZEvTgaCeqxOu1NYKjptr1ACDQB_fBymZyINyNKfWdEDMUdT-3YJpAkuiDW7y0eeaD-bH6_Q7VHw7KyiTIET3JBUf94uZSNXqcpOkuHJ_dkZGFnExF8FzWoHNev8GHVPXMeygyANlfbrBfcQG8iF3nolXSp_VaFkhmeStRS0kQ05XSofVS6OOO6WGvpdGELXF9FVgMka_m3S4TyQVMYpJK42U4tzsXpMwOjg70eW_TQ",
"threeDsData": null,
"status": "New"
}Create open banking payments.
customerId or email is required. curl --request POST \
--url https://api.stage.rocka.live/api/payments \
--header 'Content-Type: application/*+json' \
--header 'x-api-key: <api-key>' \
--data '
{
"amount": 1.24,
"currency": "EUR",
"customerId": "CID-012456789-1",
"description": "Order 1234-DS-1234",
"shopId": "d0c3ccd9-162c-497e-808b-e769aea89c58",
"paymentId": "119318-123-test-1423",
"returnUrl": "https://example.com/returnUrl"
}
'{
"id": "31739456-be7a-4ed5-bb47-1076247235c7",
"url": "https://checkout.rocka.live/?id=31739456-be7a-4ed5-bb47-1076247235c7&token=v4.local.8f-oWexxulzmRG4lriUJ1IZuKJsV_kBd9WDufvxBlYMiJZ1-losr11ZY0mDsO_sUFOfY8KLTsFd4Xig9vSxGXfU-Su0o05pcJTJs3f0V4sWjB8nCST3VrBnLUcoIxh8v9XuZnF6tylaK7qJCEr6f2dqMzphJxPaUBNEu1EcxgyEexbU3foC3j6IfJs4vZEvTgaCeqxOu1NYKjptr1ACDQB_fBymZyINyNKfWdEDMUdT-3YJpAkuiDW7y0eeaD-bH6_Q7VHw7KyiTIET3JBUf94uZSNXqcpOkuHJ_dkZGFnExF8FzWoHNev8GHVPXMeygyANlfbrBfcQG8iF3nolXSp_VaFkhmeStRS0kQ05XSofVS6OOO6WGvpdGELXF9FVgMka_m3S4TyQVMYpJK42U4tzsXpMwOjg70eW_TQ&country=EU&info_isNew=true",
"qrCode": null,
"token": "v4.local.8f-oWexxulzmRG4lriUJ1IZuKJsV_kBd9WDufvxBlYMiJZ1-losr11ZY0mDsO_sUFOfY8KLTsFd4Xig9vSxGXfU-Su0o05pcJTJs3f0V4sWjB8nCST3VrBnLUcoIxh8v9XuZnF6tylaK7qJCEr6f2dqMzphJxPaUBNEu1EcxgyEexbU3foC3j6IfJs4vZEvTgaCeqxOu1NYKjptr1ACDQB_fBymZyINyNKfWdEDMUdT-3YJpAkuiDW7y0eeaD-bH6_Q7VHw7KyiTIET3JBUf94uZSNXqcpOkuHJ_dkZGFnExF8FzWoHNev8GHVPXMeygyANlfbrBfcQG8iF3nolXSp_VaFkhmeStRS0kQ05XSofVS6OOO6WGvpdGELXF9FVgMka_m3S4TyQVMYpJK42U4tzsXpMwOjg70eW_TQ",
"threeDsData": null,
"status": "New"
}Information for the new payment creation.
Payment amount in decimal format (e.g. 999.99).
Payment currency. Currently accepted: {EUR, BGN, BRL, CAD, DKK, HUF, NOK, RON, SEK}.
EUR, BGN, BRL, CAD, DKK, HUF, NOK, RON, SEK The URL the customer is redirected to once the payment is completed.
Order identifier in your records.
Short payment description for the customer.
Customer's unique identifier in your records.
Rocka will send payment status updates to this URL.
Your website's identifier in Rocka's records. This parameter is useful if you have more than one website.
Customer's email address.
If you include this parameter, the payment will be initiated directly through this provider, skipping Rocka's payment form.
Customer's IP Address.
Customer's IBAN.
Bank reference for this payment, with a space.
"864abc4d12648 IN"
Was this page helpful?