> For the complete documentation index, see [llms.txt](https://docs.toomuchmedia.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.toomuchmedia.com/nats-admin/sites/further-reading/postbacks-and-post-urls/post-urls.md). Agents can also search and read this documentation through its [MCP server](https://docs.toomuchmedia.com/~gitbook/mcp).

# Post URLs

*Article Topics:* [*Sites*](https://docs.toomuchmedia.com/getting-started/common-topics/sites.md)

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](https://docs.toomuchmedia.com/nats-admin/sites/further-reading/postbacks-and-post-urls.md)"

## 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](https://docs.toomuchmedia.com/nats-admin/sites.md).

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](https://docs.toomuchmedia.com/nats-admin/sites/further-reading/site-user-management.md#when-each-action-is-sent), this is the same event as the *ADD* user management call. For manually added members, the call is *MANUALADD*.

```
transaction type: 'trial'
post_type = 'approvalpost'
```

```
transaction type: 'initial'
post_type = 'approvalpost'
```

```
transaction type: 'manualadd'
post_type = 'approvalpost'
```

Denial Post URL:

Sent when the biller declines a join attempt.

```
transaction type: 'deny'
post_type = 'denypost'
```

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](https://docs.toomuchmedia.com/nats-admin/sites/further-reading/site-user-management.md#when-each-action-is-sent), this is the same event as the *TRIALTOFULL* user management call.

```
transaction type: 'conversion'
post_type = 'upgradepost'
```

```
transaction type: 'upgradesuccess'
post_type = 'upgradepost'
```

Upgrade Denial Post URL:

Sent when a member's upgrade attempt is declined.

```
transaction type: 'upgradedeny'
post_type = 'upgradedenypost'
```

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.

```
post_type = 'check_username'
```

Prejoin Post URL:

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

```
post_type = 'prejoinpost'
```

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.

```
transaction type: 'pre_initial'
post_type = 'pre_approvalpost'
```

```
transaction type: 'pre_trial'
post_type = 'pre_approvalpost'
```

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](https://docs.toomuchmedia.com/nats-admin/sites/further-reading/site-user-management.md#when-each-action-is-sent), this is the same event as the *ADD* user management call.

```
transaction type: 'no_cost_registration'
post_type = 'nocost_approvalpost'
```

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](https://docs.toomuchmedia.com/nats-admin/sites/further-reading/site-user-management.md#when-each-action-is-sent), this is the same event as the *ADD* user management call.

```
transaction type: 'third_reg'
post_type = 'thirdreg_approvalpost'
```

Pre Rebill Post URL:

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

```
transaction type: 'pre_rebill'
post_type = 'pre_rebillpost'
```

```
transaction type: 'pre_conversion'
post_type = 'pre_rebillpost'
```

Pending Join Post URL:

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

```
transaction type: 'pending_initial'
post_type = 'pending_approvalpost'
```

```
transaction type: 'pending_trial'
post_type = 'pending_approvalpost'
```

Pending Rebill Post URL:

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

```
transaction type: 'pending_rebill'
post_type = 'pending_rebillpost'
```

```
transaction type: 'pending_conversion'
post_type = 'pending_rebillpost'
```

Rebill Post URL:

Sent when a member rebills. If you use [Site User Management](https://docs.toomuchmedia.com/nats-admin/sites/further-reading/site-user-management.md#when-each-action-is-sent), this is the same event as the *ACTIVATE* user management call.

```
transaction type: 'rebill'
post_type = 'rebillpost'
```

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](https://docs.toomuchmedia.com/nats-admin/sites/further-reading/site-user-management.md#when-each-action-is-sent), this is the same event as the *EXPIRE* user management call.

```
transaction type: 'cancel'
post_type = 'cancelpost'
```

Credit Post URL:

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

```
transaction type: 'credit'
post_type = 'creditpost'
```

Chargeback Post URL:

Sent when the biller reports a chargeback on a transaction.

```
transaction type: 
'chargeback'
post_type = 'chargebackpost'
```

Insufficient Funds Post URL:

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

```
transaction type: 'insufficient_funds'
post_type = 'insufficient_fundpost'
```

Void Post URL:

Sent when a transaction is voided.

```
transaction type: 'void'
post_type = 'voidpost'
```

Expire Post URL:

Sent when a member's access ends. If you use [Site User Management](https://docs.toomuchmedia.com/nats-admin/sites/further-reading/site-user-management.md#when-each-action-is-sent), this is the same event as the *DELETE* user management call.

```
transaction type: 'expire'
post_type = 'expirepost'
```

Changed Details Post URL:

Sent when a member's details change (for example, their username or password). If you use [Site User Management](https://docs.toomuchmedia.com/nats-admin/sites/further-reading/site-user-management.md#when-each-action-is-sent), this is the same event as the *CHANGE* user management call.

```
transaction type: 'change_details'
post_type = 'change_detailspost'
```

Credit Reversal Post URL:

Sent when a previous credit is reversed.

```
transaction type: 'credit_reversal'
post_type = 'credit_reversal_post'
```

Void Reversal Post URL:

Sent when a previous void is reversed.

```
transaction type: 'void_reversal'
post_type = 'void_reversal_post'
```

Chargeback Reversal Post URL:

Sent when a previous chargeback is reversed.

```
transaction type: 'chargeback_reversal'
post_type = 'chargeback_reversal_post'
```

Insufficient Funds Reversal Post URL:

Sent when a previous insufficient funds transaction is reversed.

```
transaction type: 'insufficient_funds_reversal'
post_type = 'insufficient_funds_reversal_post'
```

Pending NCR Post URL:

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

```
transaction type: 'ncr_verify'
post_type = 'pending_ncrpost'
```
