Skip to main content
POST
/
orders
/
{order_number}
/
retry-payment
Retry payment
curl --request POST \
  --url https://staging.api.commercengine.io/api/v1/{store_id}/storefront/orders/{order_number}/retry-payment \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "payment_method": {
    "payment_provider_slug": "<string>",
    "integration_type": "<string>",
    "gateway_reference_id": "<string>",
    "return_url": "<string>",
    "action": "paymentPage"
  }
}
'
{
  "message": "<string>",
  "success": true,
  "content": {
    "payment_info": {
      "id": "<string>",
      "status": "<string>",
      "order_id": "<string>",
      "payment_links": {
        "web": "<string>",
        "expiry": "<string>"
      },
      "sdk_payload": {
        "requestId": "<string>",
        "service": "<string>",
        "payload": {
          "clientId": "<string>",
          "merchantId": "<string>",
          "clientAuthToken": "<string>",
          "clientAuthTokenExpiry": "<string>",
          "environment": "<string>",
          "orderId": "<string>",
          "amount": "<string>",
          "action": "<string>",
          "customerId": "<string>",
          "firstName": "<string>",
          "lastName": "<string>",
          "returnUrl": "<string>",
          "customerPhone": "<string>",
          "customerEmail": "<string>",
          "currency": "<string>",
          "description": "<string>",
          "options.createMandate": "<unknown>",
          "mandate.maxAmount": "<string>",
          "mandate.start_date ": "<string>",
          "mandate.end_date ": "<string>",
          "mandate.frequency": "<unknown>",
          "mandate.rule_value ": "1-7"
        }
      },
      "order_expiry": "2023-11-07T05:31:56Z"
    }
  }
}

Authorizations

Authorization
string
header
required

Access token

Path Parameters

order_number
string
required

order number

Body

application/json
payment_method
JusPayHyperCheckout · object

Response

OK

message
string
required
success
boolean
required
content
object
required