Create Subscriptions
This page will help you get started with Checkout - Subscription.
post/direct/subscription
Request
- Base URLhttps://api.ksamerchant.geidea.net/subscriptions/api/v1
- URLhttps://api.ksamerchant.geidea.net/subscriptions/api/v1/direct/subscription
- AuthHTTP basic
Request body
Response
200
Example response
{
"subscription": {
"customerName": "hsbc",
"customerEmail": "sub.test@geidea.net",
"customerPhoneCountryCode": "+971",
"customerPhone": "529872786",
"subscriptionId": "8a055aa4-13d9-4f74-421d-08dc3cbb381c",
"merchantId": "0ee5274f-5b1a-4415-62a8-08dc20998061",
"merchantPublicKey": "db5d957d-a0fd-4a1e-9312-5eb7ae6b3db4",
"description": "Subscription #453293393959",
"recurringPaymentAmount": 100,
"currency": "AED",
"startDate": "2024-03-08T00:00:00Z",
"endDate": "2124-03-08T00:00:00Z",
"cycleInterval": "Month",
"cycleFrequency": 3,
"occurrences": [
{
"occurrenceId": "9c6e2c11-82c1-4fc2-7e67-08dc3cbb3826",
"subscriptionId": "8a055aa4-13d9-4f74-421d-08dc3cbb381c",
"type": "Recurring",
"amount": 100,
"date": "2024-03-08T00:00:00Z",
"status": "NotProcessed"
}
],
"nextOccurrenceDate": "2024-03-08T00:00:00Z",
"status": "Created",
"typeOfPayment": "RecurringPayment",
"paylinkExpirationPeriod": 7,
"customerId": "d0edbc67-38b9-4ef4-7329-08dc3cbb2fe8",
"number": "453293393959",
"language": "AR",
"amountVariability": "FIXED",
"isFirstPmtPBL": true,
"createdDate": "2024-03-08T05:08:46.896845Z",
"createdBy": "DirectApi",
"updatedDate": "2024-03-08T05:08:46.896845Z"
},
"responseCode": "000",
"detailedResponseCode": "000"
}Changes
No recorded changes to this operation across all 1 revision of this API.