User Payment History

This endpoint returns all payment transactions (subscription payments and one-time purchases) for a given subscriber.

Use the GET method to query a subscriber, subscriberId is required.

Method

URL

Request Parameters

Field
Type
Description

subscriberId

Required

The email or phone number used by the user when starting the subscription.

paymentType

Optional

Filters by payment type. Allowed values: subscription, consumable (one-time payments).

startDate

Optional

Should be string (YYYY-MM-DD). Returns payments occurring after this date.

endDate

Optional

Should be string (YYYY-MM-DD). Returns payments occurring before this date.

packageId

Optional

Filters transactions belonging to a specific package.

Sample Request

GET https://api.zotlo.com/v1/transaction?subscriberId=SUBSCRIBER_ID&paymentType=subscription&startDate=2024-01-01&endDate=2024-01-30 HTTP/1.1
AccessKey: ••••••
AccessSecret: ••••••
Content-Type: application/json
ApplicationId:
Language: ••
circle-info

You can find your AccessKey and AccessSecret in the Zotlo Panel under Developer Tools → API Keys

Sending ApplicationId is optional.

Successful Response

Key Response Fields

Field
Description

transaction_id

Unique ID of the specific payment attempt.

original_transaction_id

The root transaction ID for the subscription or consumable order. All renewals reference this same ID.

payment_type

Type of payment: • subscription – Subscription payment (start, renewal, trial→paid). • consumable – One-time purchase.

package_id

Identifier of the product or subscription package.

status

Payment status type: • start_paid – First paid subscription purchase • trial – Trial started • trial_to_paid – Trial converted to paid • renewal – Subscription renewed • reactive – Reactivation payment • consumable – One-time purchase

purchase_date

Date and time when this payment attempt succeeded.

expire_date

Subscription expiry date for subscription payments (null for consumables).

original_purchase_date

First purchase date of the subscription.

price

Payment amount.

currency

Payment currency (USD, EUR, TRY etc.).

country

Country of purchase determined by payment metadata.

subscriptionId

Internal Zotlo subscription identifier (only for subscription payments).

refund

If the payment was refunded, contains refund metadata. Null otherwise.

exchange.status

Indicates whether currency exchange was applied.

exchange.detail

Additional exchange rate details if applicable.

checkout_type

Payment method (card, PayPal, GPay, ApplePay, etc.).

custom_parameters

May contains custom data (App specific user IDs, UTM data, Adjust/AppsFlyer/analytics IDs, IP address, etc.

Failed Response

All failed responses follow the same standard error format. (See: Error Handling)

Last updated