Credit and Debit Adjustments

Credit and Debit Adjustment Column Headings describes the credit and debit adjustment CSV column headings.

Table 1. Credit and Debit Adjustment Column Headings
Column Heading Required/Optional Notes
SubscriberSearchData Required This heading is used to identify the subscriber.
The format must be ID type + ID value (for example, Imsi+408239-2039 or ExternalId+extId23). Valid ID types are:
  • SubscriberId
  • ObjectId
  • ExternalId
  • PhoneNumber
  • Imsi
  • AccessNumber
  • LoginId
  • AccessId
BalanceResourceId Required The balance resource ID.
AdjustType Required The type of adjustment to apply. Values are: 1=Credit Balance, 2=Debit Balance, 3=Reset Meter
Amount Required The amount.
Reason Required The reason for the adjustment.
Voucher Optional The reference authorizing the top-up.
EndTime Optional The time to set as the new EndTime of a balance. If the specified EndTime value for a topup is earlier than the current time, the date change is not applied and an error is returned. Applied in addition to EndTimeExtensionOffset Unit and EndTimeExtensionOffset if they are present.
EndTimeExtensionOffsetUnit Optional Type of units for EndTimeExtensionOffsetused to specify the extension of the current EndTime of a balance.
  • "hours" (1)
  • "days" (2)
  • "weeks" (3)
  • "months" (4)
  • "years" (5)
  • "minutes" (6)
EndTimeExtensionOffset Optional The number of units (from EndTimeExtensionOffset Unit) by which to extend the current EndTime of a balance.
Credit and Debit Sample Data shows example data for credit and debit adjustments.
Table 2. Credit and Debit Sample Data
SubscriberSearchData BalanceResourceId Amount Reason AdjustType
ExternalId+Subscriber1 1 4085551213 loc1 1
ExternalId+Subscriber2 2 4085551213 loc2 2
ExternalId+Subscriber3 3 4085551213 loc3 1
ExternalId+Subscriber4 4 3435 loc2 1
ExternalId+Subscriber5 5 4085551213 loc3 1
The following code is an example of a CSV file for the credit and debit adjustments shown in Credit and Debit Sample Data.
SubscriberSearchData,BalanceResourceId,Amount,Reason,AdjustType
ExternalId+Subscriber1,1,4085551213,loc1,1
ExternalId+Subscriber2,1,4085551213,loc2,2
ExternalId+Subscriber3,1,4085551213,loc3,1
ExternalId+Subscriber4,1,345,loc2,1
ExternalId+Subscriber5,1,4085551213,loc3,1