Skip to main content

Create New Subscription

Endpoint : https://demo-api.frontpayment.no/api/v1/connect/subscription/create
Method : POST
Authorization : Bearer
Payload Validations :
Example Payload :
{
    "products": {
        "0": {
            "name": "product 3",
            "productId": null,
            "quantity": "1",
            "rate": "2000",
            "discount": 0,
            "tax": "0",
            "amount": 2000
        }
    },
    "orderSummary": {
        "subTotal": "2000.00",
        "totalTax": "0.00",
        "totalDiscount": "0.00",
        "grandTotal": "2000.00",
        "payablePerCycle":"2000.00"
    },
    "billingFrequency":"month",
    "numberOfRepeats":12,
    "subscriptionStartDate": "21 Feb, 2023",
    "subscriptionEndsDate": "21 Feb, 2024",
    "dueDateForPaymentLink": "1677047770.652",
    "paymentLink":"https://stg.frontpayment.no",
    "termsAndConditions":"terms and conditions",
    "sendOrderBy": {
        "sms": false,
        "email": true
    },
    "customerDetails": {
        "customerUuid": "CSRT3798554634",
        "type": "private",
        "countryCode": "+47",
        "msisdn": "46567468",
        "email": "[email protected]",
        "name": "420 Test",
        "personalNumber": null,
        "organizationId": "925710482",
        "preferredLanguage": "no",
        "address": {
            "street": "Mirpur-14",
            "zip": "3500",
            "city": "Dhaka",
            "country": "norway"
        }
    },
    "customerNotes":"test",
    "submitPayment": {
        "currency": "NOK"
    }
}

Response Structure :  
Example Response :