Subscriber Transactions
After each subscription payment, a default customerReferenceCode is generated for the customer whose details are provided. Currently, this reference code can only be used to retrieve and update customer information.
Customers are created or updated based on the email parameter. For example, a unique reference code, let's say 'A', is generated for a customer when a subscription is created with email address 'X'. If the email address 'X' is used in another subscription, the customer details sent in the request are updated, and once again, a unique reference code 'A' is generated.
There are 3 different methods that can be used on subscribers.
Update all details of a subscriber via API. Provide the subscriber's customerReferenceCode as a path parameter and include the fields to be updated in the request body. At least one field in the body is required; only the provided fields will be updated.
Subscriber reference code.
279bb493-6fda-45e9-9368-2373ea43ff8dAuthorization header, a signed hash value that starts with IYZWSv2 and is generated in Base64 format.
IYZWSv2 YXBpS2V5OnNhbmRib....E0OGI1MTE=Request content type.
application/jsonFields to update. All fields are optional, but the body must contain at least one property.
First name.
JohnLast name.
DoeGSM number. Prefer +90 format.
+905554443333Turkish National ID Number (11 digits).
11111111111Successful response
Error response
Sample Codes
Retrieve all details of a subscriber by its reference code.
Subscriber reference code.
279bb493-6fda-45e9-9368-2373ea43ff8dAuthorization header, a signed hash value that starts with IYZWSv2 and is generated in Base64 format.
IYZWSv2 YXBpS2V5OnNhbmRib....E0OGI1MTE=Request content type.
application/jsonSuccessful response
Error response
Sample Codes
List all subscribers with basic details.
Page number to fetch.
1Number of subscribers per page.
1Authorization header, a signed hash value that starts with IYZWSv2 and is generated in Base64 format.
IYZWSv2 YXBpS2V5OnNhbmRib....E0OGI1MTE=Request content type.
application/jsonSuccessful response
Error response
Sample Codes
Last updated
