Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Post URLs

Article Topics: Sites

The following is a list of the fields you can expect to receive on a site postback from NATS.

For other postback examples, please see "Postbacks and Post URLs"

Approval Post URL

memberid => 796
identid => 34
loginid => 1
networkid => 0
refurl_lookup_id => 9
status => 1
trial => 1
joined => 1262047950
expired => 0
last_login => 0
stamp => 1262047950
siteid => 1
username => approvalpost4
password => password
cryptpass => a4sLkn7C9GP12
ip => 1264826090
email => approval@post.com
session => 2543fce3968fac6eeb94cf0ba8f79c33
mailok => 1
flat_price => 0
first_login => 0
third_party_partner_id => 0
cascadeid => 1
cascade_item_id => 23
token => 0
original_username => approvalpost4
renamed => 0
marked => 0
token_hash => a982a462747406a377a6f3d97572191d
member_subscription_id => 466
memberidx => ZOMBAIO:1150132
billerid => 22
statid => 54b3952c068269
cost => 0
cost_charge => 0
spent => 2995
refunded => 0
charges => 0
next_rebill => 1262220750
optionid => 3
rebills => 0
active => 1
expires => 1262220750
nats_expires => 1262220750
biller_expires => 0
original_optionid => 3
created_date => 1262047936
loginid_assigned => 0
identid_assigned => 0
passthrough1 = passthrough1
passthrough2 = passthrough2
passthrough3 = passthrough3
passthrough4 = passthrough4
passthrough5 = passthrough5
defaulted_optionid = 0
forced_optionid = 0
member_identid = 505
member_loginid = 2
firstname => asdf
lastname => asdf
address1 => asdf
zip => 12345
city => dfsdf
state = CA
country => US
xsell_success => 0
custom1 = custom1
custom2 = custom2
custom3 = custom3
custom4 = custom4
custom5 = custom5
last_modified => 0
transaction => Array(
        transaction_id => 617
        biller_time => 1262047950
        server_time => 1262047950
        biller_transid => ZOMBAIO:243621
        amount => 2995
        biller_amount => 2995
        biller_currency => USD
        exchange_rate => 1
        trans_type_id => 3
        charges => 0
        charge_deduct => 0
        taxes => 202
        tax_deduct => 0
        process_type => 0
        total_transaction_payout => 1497
)
campaignid => 0
programid => 1
tourid => 19
adtoolid => 0
subid1 => 0
subid2 => 0
countryid => 116
promotionalid => 0
campaign_name => {campaign name}
login_username => {affiliate username}
post_time => 1262047950
post_type => approvalpost
tax_info => Array(
        country => US
        region => CA
        zip => 12345
        source => VERTEX
        taxid => 12
        tax_amount => 0
        tax_perc => 725
)

Tax Information

If you have tax set up in NATS, Post URLs also include a tax_info array, as shown at the end of the example above. It is only sent when a tax rule applies to the member.

Field
Description

country

Two-letter ISO country code used for the tax lookup (for example, US).

region

Region or state code used for the tax lookup (for example, CA). Empty if no region applies.

zip

Postal code used for the tax lookup.

source

Where the rate came from. VERTEX means the rate came from a Vertex tax lookup. Empty means a tax rule you set up in NATS.

taxid

ID of the tax rule that was applied.

tax_amount

Flat tax amount, in cents (for example, 100 = $1.00).

tax_perc

Tax percentage, in hundredths of a percent (for example, 725 = 7.25%).

The transaction array also includes the tax charged on that transaction:

Field
Description

transaction[taxes]

Tax amount for this transaction, in cents (for example, 202 = $2.02).

transaction[tax_deduct]

How tax is deducted for affiliate payouts: 0 = Never, 1 = After Affiliate Payout, 2 = From Affiliate Payout, 3 = Before Affiliate Payout.

Transaction Passthrough Values

If passthrough values were sent to NATS with a sale or rebill, the transaction array also includes them. Each field is only sent when it has a value.

Field
Description

transaction[transaction_passthrough1]

The transaction_passthrough1 value sent with the transaction.

transaction[transaction_passthrough2]

The transaction_passthrough2 value sent with the transaction.

transaction[transaction_passthrough3]

The transaction_passthrough3 value sent with the transaction.

transaction[transaction_passthrough4]

The transaction_passthrough4 value sent with the transaction.

transaction[transaction_passthrough5]

The transaction_passthrough5 value sent with the transaction.

Possible Post Types

The following lists every possible parameter and value for post types that are sent through NATS. All of the available parameters correspond to a setting in the Approval/Denial/Upgrade and Postback URLs sections of the "Edit Tour" pages in the Sites Admin.

Approval Post URL:

Sent when a new member joins (an initial or trial sale), or when an admin adds a member manually. If you use Site User Management, this is the same event as the ADD user management call. For manually added members, the call is MANUALADD.

Denial Post URL:

Sent when the biller declines a join attempt.

Upgrade Approval Post URL:

Sent when a trial member converts to a full membership, either when the trial rebills or through an instant upgrade. If you use Site User Management, this is the same event as the TRIALTOFULL user management call.

Upgrade Denial Post URL:

Sent when a member's upgrade attempt is declined.

Username Post URL:

Sent during signup to check whether a username is available. Only the username, email, siteid, tourid, programid and loginid fields are sent. If your script's reply contains *exists*, NATS treats the details as already in use.

Prejoin Post URL:

Sent when a visitor submits the pre-join form, before they are sent to the biller.

Pre Join Post URL:

Sent when the biller reports a pre-approved join, before the sale is fully approved. NATS also sends the ADD user management call.

NCR Join Post URL:

Sent when a member completes a no-cost registration (a free signup with no payment). If you use Site User Management, this is the same event as the ADD user management call.

Third Party Free Registration Post URL:

Sent when a member completes a free registration through a third-party partner. If you use Site User Management, this is the same event as the ADD user management call.

Pre Rebill Post URL:

Sent when a rebill is in process but has not completed yet.

Pending Join Post URL:

Sent when the biller reports a join that is still pending approval. NATS also sends the ADD user management call.

Pending Rebill Post URL:

Sent when the biller reports a rebill that is still pending.

Rebill Post URL:

Sent when a member rebills. If you use Site User Management, this is the same event as the ACTIVATE user management call.

Cancel Post URL:

Sent when the biller reports that a member cancelled. The member keeps access until their expiration date. If you use Site User Management, this is the same event as the EXPIRE user management call.

Credit Post URL:

Sent when a transaction is credited (refunded) to the member.

Chargeback Post URL:

Sent when the biller reports a chargeback on a transaction.

Insufficient Funds Post URL:

Sent when the biller reports that a charge failed because of insufficient funds.

Void Post URL:

Sent when a transaction is voided.

Expire Post URL:

Sent when a member's access ends. If you use Site User Management, this is the same event as the DELETE user management call.

Changed Details Post URL:

Sent when a member's details change (for example, their username or password). If you use Site User Management, this is the same event as the CHANGE user management call.

Credit Reversal Post URL:

Sent when a previous credit is reversed.

Void Reversal Post URL:

Sent when a previous void is reversed.

Chargeback Reversal Post URL:

Sent when a previous chargeback is reversed.

Insufficient Funds Reversal Post URL:

Sent when a previous insufficient funds transaction is reversed.

Pending NCR Post URL:

Sent when a member signs up for a no-cost registration that is still pending verification.

Last updated

Was this helpful?