Skip to main content

Get Failed Payment Details

Description:
Retrieves a failed subscription order by  orderUuid. The response includes details of the failed subscription order.

Url Parameter Parameters:

  • orderUuid (string, required) 

Authentication

This endpoint requires authentication using a Bearer Token. The client must send the token in the Authorization header for every request.

Example Authentication Header:

Authorization: Bearer YOUR_ACCESS_TOKEN

If the token is missing or invalid, the API will return a 401 Unauthorized response.

Endpoint : https://demo-api.frontpayment.no/api/v1/connect/subscriptions/failed/details/{orderUuid}
Method : GET
Authorization : Bearer
Payload Validation :
Response Structure :
{
  "status_code": "Integer",
  "status_message": "String",
  "message": "String",
  "is_data": "Boolean",
  "data": {
    "logs": [
      {
        "title": "String",
        "datetime": "String",
        "note": "String",
        "status": "String",
        "sentTo": "String",
        "paymentMethod": "String",
        "refundAmount": "Float",
      }
    ],
    "details": {
      "subscriptionUuid": "String",
      "dateCreated": "String",
    "orderDate": "String",
      "dueDateForPaymentLink": "String",
      "sendOrderViaSms": "Boolean",
      "sendOrderViaEmail": "Boolean",
    "customerNotes": "String",
    "isInvoiced": "Boolean",
    "termsAndConditions": "String| null",
    "customerName": "string",
    "countryCode": "String",
    "msisdn": "String",
    "email": "String",
    "street": "String",
    "zip": "String",
    "city": "String",
    "country": "String",
    "subTotal": "Float",
    "totalDiscount": "Float",
    "totalTax": "Float",
    "payablePerCycle": "Float",
      "currency": "String",
      "repeats": "Integer",
      "numberOfPaidCycles": "Integer",
    "status": "String",
    "products": [
      {
        "productName": "String",
        "quantity": "Integer",
        "rate": "Float",
        "discount": "Float",
        "tax": "Float",
        "amount": "Float"
      }
    ]
  }
}
}

Example Response :
{
  "status_code": 200,
  "status_message": "OK",
  "message": "orderRetrievedSuccessfully",
  "is_data": true,
  "data": {
    "logs": [
      {
        "title": "ORDER RESENT",
        "datetime": "05.03.2025 05:51",
        "note": "",
        "status": "SUCCESS",
        "sentTo": "",
        "paymentMethod": null,
        "refundAmount": null
      },
      {
        "title": "ORDER RESENT",
        "datetime": "05.03.2025 05:49",
        "note": "",
        "status": "SUCCESS",
        "sentTo": "",
        "paymentMethod": null,
        "refundAmount": null
      },
     ...
    ],
    "details": {
      "subscriptionUuid": "SUB2532543787",
      "dateCreated": "19.12.2024",
    "orderDate": "19.12.2024",
      "dueDateForPaymentLink": "2025-01-02 06:47:11",
      "sendOrderViaSms": 0,
      "sendOrderViaEmail": 1,
    "customerNotes": null,
    "isInvoiced": 1,
    "termsAndConditions": null,
    "customerName": "Nafees",
    "countryCode": "+47",
    "msisdn": "46567468",
    "email": "[email protected]",
    "street": "Lura",
    "zip": "4131",
    "city": "Stavanger",
    "country": "NO",
    "subTotal": 2173.91,
    "totalDiscount": 0,
    "totalTax": 326.09,
    "payablePerCycle": 2500,
      "currency": "NOK",
      "repeats": 5,
    "status": "INVOICED",
    "products": [
      {
        "productName": "Health Check Service 3",
        "quantity": 1,
        "rate": 2500,
        "discount": 0,
        "tax": 15,
        "amount": 2500
      }
    ],
      "numberOfPaidCycles": 5
    }
  }
}