The varinode API is designed to have predictable, resource-oriented URLs and to use HTTP response codes to indicate API errors. We allow you to interact securely with our API from a client-side web application (though you should remember that you should never expose your secret API key in any public website's client-side code). JSON will be returned in all responses from the API, including errors (though if you're using API bindings, we will convert the response to the appropriate language-specific object).
To make the varinode API as explorable as possible, we offer a test_mode option that will never hit the credit card networks and will never cost you money.
Set of methods that enable you to retrieve and manage products for use with your cart.
Input Parameters
This is an array of product urls from supported online retailers.
$inputParams = array('product_urls'=>array(
  'http://bananarepublic.gap.com/browse/product.do?cid=66299&vid=1&pid=423451022',
  'http://shop.nordstrom.com/s/halogen-stretch-woven-a-line-skirt-regular-petite/3627603',
  'http://www.gap.com/browse/product.do?cid=5231&vid=1&pid=767861362'
);
	                        			
                      				
Example coming soon
                      					
                      				Example Response
{
  "processed_sites":{
    "b40016e84ed448d7b1b3f9508ee6a492":{
      "site_info":{
        "site_id":"b40016e84ed448d7b1b3f9508ee6a492",
        "site_name":"Banana Republic",
        "site_url":"bananarepublic.gap.com",
        "site_logo":"http://static.varinode.com/bananarepublic-png.png",
        "site_accepted_card_types":{
          "visa":"on",
          "amex":"on",
          "discover":"on",
          "mastercard":"on"
        },
        "site_shipping_options":{
          "US":{
            "default_value":"1304",
            "values":{
              "2012":{
                "text":"7-9 Business days ($50+)",
                "price":"0",
                "value":"2012"
              },
              "1304":{
                "text":"3-5 Business days",
                "price":"7",
                "value":"1304"
              },
              "2066":{
                "text":"2 Business Days",
                "price":"17",
                "value":"2066"
              },
              "2064":{
                "text":"1 Business day",
                "price":"22",
                "value":"2064"
              }
            }
          }
        },
        "site_gifting_options":{
          "US":{
            "default_value":"0",
            "gift_msg_max_chars":"60",
            "values":{
              "0":{
                "text":"No Gift Option",
                "price":"0",
                "value":"0"
              },
              "3":{
                "text":"Gift Message",
                "price":"0",
                "value":"3"
              },
              "1":{
                "text":"Gift Box",
                "price":"5",
                "value":"1"
              },
              "2":{
                "text":"Gift Kit",
                "price":"2",
                "value":"2"
              }
            }
          }
        },
        "required_parameters":{
          "US":{
            "guest_account":{
              "email":""
            },
            "login_account":{
              "username":"",
              "password":""
            }
          }
        },
        "optional_parameters":{
          "US":{
            "promo_codes":[],
            "gift_cards":[
              {
                "number":"",
                "pin_access_code":""
              }
            ],
            "shipping_option":"",
            "gifting_options":[
              {
                "gift_ids":[],
                "gift_option":"",
                "gift_to":"",
                "gift_from":"",
                "gift_msg":""
              }
            ]
          }
        }
      },
      "urls_failed":[],
      "products":{
        "4fccb1f55c8c4e959b4dd9f334d90424":{
          "required_attributes":{
            "color":{
              "default_value":"1021",
              "values":{
                "1017":{
	              "text":"Black",
	              "swatch_image":"http://bananarepublic.gap.com/Asset_Archive/BRWeb/Assets/Product/423/423451/swatch/br423451-00sv01.gif",
	              "images":["http://bananarepublic.gap.com/Asset_Archive/BRWeb/Assets/Product/423/423451/big/br423451-00vliv01.jpg"],
	              "videos":[],
	              "value":"1017"
	            },
	            "1021":{
	              "text":"Navy star",
	              "swatch_image":"http://bananarepublic.gap.com/webcontent/0004/667/450/cn4667450.jpg",
	              "images":["http://bananarepublic.gap.com/webcontent/0004/667/460/cn4667460.jpg"],
	              "videos":[],
	              "value":"1021"
	            },
	            "1029":{
	              "text":"White",
	              "swatch_image":"http://bananarepublic.gap.com/webcontent/0004/353/796/cn4353796.jpg",
	              "images":["http://bananarepublic.gap.com/webcontent/0004/353/802/cn4353802.jpg"],
	              "videos":[],
	              "value":"1029"
	            }
	          }
	        },
	        "size":{
	          "default_value":"1528",
	          "values":{
	            "1528":{
	              "text":"XS",
	              "value":"1528"
	            },
	            "1529":{
	              "text":"S",
	              "value":"1529"
	            },
	            "1530":{
	              "text":"M",
	              "value":"1530"
	            }
	          }
	        },
	        "quantity":{
	          "default_value":1
		    }
		  },
		  "attribute_dependencies":{
		    "color":{
		      "1017":{
		        "size":{
		          "1528":{
		            "price":"39.5",
		            "orig_price":"39.5"
		          },
		          "1529":{
		            "price":"39.5",
		            "orig_price":"39.5"
		          },
		          "1530":{
		            "price":"39.5",
		            "orig_price":"39.5"
		          }
		        }
		      },
		      "1021":{
		        "size":{
		          "1528":{
		            "price":"39.5",
		            "orig_price":"39.5"
		          },
		          "1529":{
		            "price":"39.5",
		            "orig_price":"39.5"
		          },
		          "1530":{
		            "price":"39.5",
		            "orig_price":"39.5"
		          }
		        }
		      },
		      "1029":{
		        "size":{
		          "1528":{
		            "price":"39.5",
		            "orig_price":"39.5"
		          },
		          "1529":{
		            "price":"39.5",
		            "orig_price":"39.5"
		          },
		          "1530":{
		            "price":"39.5",
		            "orig_price":"39.5"
		          }
		        }
		      }
		    }
		  },
		  "product_id":"4fccb1f55c8c4e959b4dd9f334d90424",
		  "product_title":"Signature piqué polo",
		  "product_description":[
		    "Our pique polos have a special performance finish that helps them maintain color and shape, reducing shrinkage and pilling.",
		    "Relaxed polo collar. Buttoned placket.",
		    "Embroidered elephant at chest."
		  ],
		  "product_price":"39.5",
		  "product_image":"http://bananarepublic.gap.com/webcontent/0004/667/460/cn4667460.jpg",
		  "product_url":"http://bananarepublic.gap.com/browse/product.do?cid=66299&vid=1&pid=423451022"
        }
      }
    }
  },
  "status":"complete",
  "unsupported_urls":[]
}
                        
                        
                        Result Description
Input Parameters
If you wish to add products to an existing cart, specifiy the cart_id for the cart you want to add to.
A hash specifying the products to add from a site. The API supports both site specific, and product specific affiliate links. Typically, you would only specify either the site or the product affiliate link, not both. The hash has the form:
$inputParams = array(
  'cart_id' => '', //optional
  'sites'=> array(
    'b40016e84ed448d7b1b3f9508ee6a492' => array(
      'products' => array(
        '4fccb1f55c8c4e959b4dd9f334d90424' => array(
          'color' => '1017',
          'size' => '1528',
          'quantity' => 1
        )
      ),
      'affiliate_link' => 'http://www.somesite.com/affiliateid=43949392494'
    )
  )
);
	                        			
	                      			Example coming soon
Example Response
{
  "cart_id":"a49445c333ac4f0d930bdf73ceed3204",
  "processed_sites":{
    "b40016e84ed448d7b1b3f9508ee6a492":{
      "site_info":{
        "site_id":"b40016e84ed448d7b1b3f9508ee6a492",
        "site_name":"Banana Republic",
        "site_url":"bananarepublic.gap.com",
        "site_logo":"http://static.varinode.com/bananarepublic-png.png",
        "site_accepted_card_types":{
          "visa":"on",
          "amex":"on",
          "discover":"on",
          "mastercard":"on"
        },
        "required_parameters":{
          "US":{
            "guest_account":{
              "email":""
            },
            "login_account":{
              "username":"",
              "password":""
            }
          }
        },
        "optional_parameters":{
          "US":{
            "promo_codes":[],
            "gift_cards":[
              {
                "number":"",
                "pin_access_code":""
              }
            ]
          }
        }
      },
      "products_failed":[],
      "products_added":["4fccb1f55c8c4e959b4dd9f334d90424"]
    }
  },
  "status":"complete",
  "unsupported_sites":[]
}
                        
                        
                       Result Description
Input Parameters
The id for the cart you wish to retrieve the contents for.
Example Response
{
  "cart_id":"a49445c333ac4f0d930bdf73ceed3204",
  "processed_sites":{
    "b40016e84ed448d7b1b3f9508ee6a492":{
      "site_info":{
        "site_id":"b40016e84ed448d7b1b3f9508ee6a492",
        "site_name":"Banana Republic",
        "site_url":"bananarepublic.gap.com",
        "site_logo":"http://static.varinode.com/bananarepublic-png.png",
        "site_accepted_card_types":{
          "visa":"on",
          "amex":"on",
          "discover":"on",
          "mastercard":"on"
        },
        "required_parameters":{
          "US":{
            "guest_account":{
              "email":""
            },
            "login_account":{
              "username":"",
              "password":""
            }
          }
        },
        "optional_parameters":{
          "US":{
            "promo_codes":[],
            "gift_cards":[
              {
                "number":"",
                "pin_access_code":""
              }
            ]
          }
        }
      },
      "products":[
        {
          "product_image":"http://bananarepublic.gap.com//Asset_Archive/BRWeb/Assets/Product/423/423451/category/br423451-00viv01.jpg",
          "product_url":"http://bananarepublic.gap.com/browse/product.do?pid=4234510020000&cid=66299",
          "product_id":"4fccb1f55c8c4e959b4dd9f334d90424",
          "product_title":"Signature piqué polo",
          "product_details":{
            "skuid":"4234510020000",
            "color":"Black",
            "size":"XS"
          },
          "product_unitprice":"39.50",
          "product_quantity":"1",
          "product_subtotal":"39.50",
          "product_remove_id":"8858416269",
          "product_gift_id":"8858416269"
        }
      ],
      "cart_details":{
        "subtotal":"39.50",
        "tax":"",
        "total":"46.50",
        "shipping_cost":7,
        "shipping_estimate":"3-5 Business Days"
      }
    }
  ],
  "unsupported_sites":[],
  "status":"complete"
}
                       
                       Result Description
Input Parameters
The id of the cart you wish to remove products from.
A hash specifying the products to remove from a sites cart. The hash has the form:
Example Response
{
  "cart_id":"a49445c333ac4f0d930bdf73ceed3204",
  "processed_sites":{
    "b40016e84ed448d7b1b3f9508ee6a492":{
      "site_info":{
        "site_id":"b40016e84ed448d7b1b3f9508ee6a492",
        "site_name":"Banana Republic",
        "site_url":"bananarepublic.gap.com",
        "site_logo":"http://static.varinode.com/bananarepublic-png.png",
        "site_accepted_card_types":{
          "visa":"on",
          "amex":"on",
          "discover":"on",
          "mastercard":"on"
        },
        "required_parameters":{
          "US":{
            "guest_account":{
              "email":""
            },
            "login_account":{
              "username":"",
              "password":""
            }
          }
        },
        "optional_parameters":{
          "US":{
            "promo_codes":[],
            "gift_cards":[
              {
                "number":"",
                "pin_access_code":""
              }
            ]
          }
        }
      },
      "products_failed":[],
      "products_removed":[
        8858416269
      ]
    }
  },
  "status":"complete",
  "unsupported_sites":[],
  "invalid_sites":[]
}
                        
                       Result Description
Set of methods that enable you to enter your information, and submit the order.
Input Parameters
The id of the cart you wish to apply the submitted information to.
A hash specifying the shipping address details for the order. The hash has the form:
Instead of specifying the "shipping_address" parameter, you can use this parameter to retrieve stored address information.
A hash specifying the billing address details for the order. The hash has the form:
A hash specifying the payment details for the order. The hash has the form:
Instead of specifying the "billing_address" and "payment" hash parameters, you can use this parameter to retrieve stored billing/payment information.
A hash used to specify the checkout method (Ie. guest_account, new_account, login_account), and apply, one or more, site specific promotion codes to the order. The hash has the form:
$inputParams = array(
  'cart_id' => 'a49445c333ac4f0d930bdf73ceed3204',
  'shipping_address' => array(
    'first_name' => 'Michelle',
    'last_name' => 'Phan',
    'address_line1' => '98 Fake Street',
    'address_line2' => 'Unit 77',
    'city' => 'San Francisco',
    'state' => 'CA',
    'country_code' => 'US',
    'zip_postal_code' => '94014',
    'phone' => '4158889999'
  ),
  //'shipping_address_id' => 'dfd94786db634a0e5b7a34872hfb168a',
  //You could replace the 'shipping_address' parameter with the shipping_address_id token
  'billing_address' => array(
    'first_name' => 'Michelle',
    'last_name' => 'Phan',
    'address_line1' => '98 Fake Street',
    'address_line2' => 'Unit 77',
    'city' => 'San Jose',
    'state' => 'CA',
    'country_code' => 'US',
    'zip_postal_code' => '94014',
    'phone' => '4158889999'
  ),
  'payment' => array(
    'card_type' => 'visa',
    'card_number' => '4264426442644264',
    'card_expiry_month' => '02',
    'card_expiry_year' => '2017',
    'card_cvv' => '123'
  ),
  //'card_id' => 'c46456a51aba4b1188faee194e413586',	
  //You could replace the 'billing_address' and 'payment' parameters with the card_id token
  'sites' => array(
    'b40016e84ed448d7b1b3f9508ee6a492' => array(
      'guest_account' => array(
        'email' => 'fake@emailaddress.com'
      ),
      'promo_codes' => array('BRSUNDAY','JULYSHIP'),
      'gift_cards' => array(
        array(
          'number' => '8024109844856355',
          'pin_access_code' => '443' //This value may not be required for some retailer gift cards
        )
      ),
      'shipping_option' => '1304',
      'gifting_options' => array(
        array(
          'gift_ids' => array('8858416269'),
          'gift_option' => '1',
          'gift_to' => 'Hey Friend',
          'gift_from' => 'Phan Crew',
          'gift_msg' => 'Hope you enjoy this gift!'
        )
      )
    )
  )
);
	                        			
	                      			Example coming soon
Example Response
{
  "pre_order_id":"3a34de89d87246f189b43baf6fd3da72",
  "processed_sites":{
    "b40016e84ed448d7b1b3f9508ee6a492":{
      "site_info":{
        "site_id":"b40016e84ed448d7b1b3f9508ee6a492",
        "site_name":"Banana Republic",
        "site_url":"bananarepublic.gap.com",
        "site_logo":"http://static.varinode.com/bananarepublic-png.png"
      },
      "order_details":{
        "subtotal":"39.50",
        "shipping_cost":"7.00",
        "shipping_estimate":"3-5 business days",
        "tax":"4.07",
        "total":"50.57"
      },
      "result":"save_complete",
      "result_message":"complete"
    }
  },
  "status":"complete",
  "unsupported_sites":[]
}
                        
                       Result Description
Input Parameters
The unique identifier returned from the orders.setInfo method. This specifies which order to submit.
Set this parameter when you want to test, and do not wish to have your credit card processed.
Example Response
{
  "pre_order_id":"3a34de89d87246f189b43baf6fd3da72",
  "processed_sites":{
    "b40016e84ed448d7b1b3f9508ee6a492":{
      "site_info":{
        "site_id":"b40016e84ed448d7b1b3f9508ee6a492",
        "site_name":"Banana Republic",
        "site_url":"bananarepublic.gap.com",
        "site_logo":"http://static.varinode.com/bananarepublic-png.png"
      },
      "order_id":"77d3e78d558142a9aa089f8b0861cf5f",
      "result":"complete",
      "result_message":"complete"
    }
  },
  "status":"complete",
  "unsupported_sites":[]
}
                        
                       Result Description
Set of methods that enable you to manage your customers.
Input Parameters
The customers email address.
The customers phone number.
miscellaneous information about the customer.
Example Response
{
  "customer":{
    "customer_id":"e78b566900e3413d9434ea9382fd75a1",
    "customer_email":"fake@emailaddress.com",
    "customer_phone":"4158889999",
    "customer_description":"Anything goes here",
    "customer_default_card_id":"0",
    "customer_default_address_id":"0",
    "customer_status":"active"
  },
  "status":"complete",
  "status_message":"complete"
}
                        
                       Result Description
Input Parameters
The unique identifier for the customer you'd like to retrieve.
Example Response
{
  "customer":{
    "customer_id":"e78b566900e3413d9434ea9382fd75a1",
    "customer_email":"fake@emailaddress.com",
    "customer_phone":"4158889999",
    "customer_description":"Anything goes here",
    "customer_default_card_id":"0",
    "customer_default_address_id":"0",
    "customer_status":"active"
  },
  "status":"complete",
  "status_message":"complete"
}
                        
                       Result Description
Input Parameters
The unique identifier for the customer you'd like to update.
The customers email address.
The customers phone number.
miscellaneous information about the customer.
An existing card token.
An existing address token.
$inputParams = array( 'customer_id' => 'e78b566900e3413d9434ea9382fd75a1', 'customer_email' => 'updated@emailaddress.com', 'customer_phone' => '4159999999', 'customer_description' => 'Updated description' //'customer_default_card_id' => 'f48b4gf690053413d42343a9382fd75a1', //'customer_default_address_id' => 'af33c7c5e9f1456993bf6378e09cf8c1' );
Example coming soon
Example Response
{
  "customer":{
    "customer_id":"e78b566900e3413d9434ea9382fd75a1",
    "customer_email":"updated@emailaddress.com",
    "customer_phone":"4159999999",
    "customer_description":"Updated description",
    "customer_default_card_id":"0",
    "customer_default_address_id":"0",
    "customer_status":"active"
  },
  "status":"complete",
  "status_message":"complete"
}
                        
                       Result Description
Input Parameters
The unique identifier for the customer you'd like to remove.
Example Response
{
  "customer":{
    "customer_id":"e78b566900e3413d9434ea9382fd75a1",
    "customer_status":"deleted"
  },
  "status":"complete",
  "status_message":"complete"
}
                        
                       Result Description
Set of methods that enable you to manage customers' cards.
Input Parameters
The customer_id that you'd like to associate this card with.
If you set the card_customer_id parameter, then optionally, you can also set whether it should become the customers new default_card_id.
A hash specifying the billing address details you wish to store. The hash has the form:
A hash specifying the payment details you wish to store. The hash has the form:
$inputParams = array(
  'card_customer_id' => 'e78b566900e3413d9434ea9382fd75a1',
  'card_is_default' => 'true',
  'billing_address' => array(
    'first_name' => 'Michelle',
    'last_name' => 'Phan',
    'address_line1' => '98 Fake Street',
    'address_line2' => 'Unit 77',
    'city' => 'San Francisco',
    'state' => 'CA',
    'country_code' => 'US',
    'zip_postal_code' => '94014',
    'phone' => '4158889999'
  ),
  'payment' => array(
    'card_type' => 'visa',
    'card_number' => '4264426442644264',
    'card_expiry_month' => '02',
    'card_expiry_year' => '2017',
    'card_cvv' => '123'
  )
);
	                        			
	                      			Example coming soon
Example Response
{
  "card":{
    "card_id":"c46456a51aba4b1188faee194e413586",
    "card_customer_id":"e78b566900e3413d9434ea9382fd75a1",
    "card_funding":"credit",
    "card_type":"visa",
    "card_last4":"4264",
    "card_expiry_month":"02",
    "card_expiry_year":"2017",
    "card_fingerprint":"822f374285acad4e59d9e67f024e4f63",
    "card_timestamp":"2014-07-04T10:08:09+00:00",
    "card_status":"active"
  },
  "status":"complete",
  "status_message":"complete"
}
                        
                       Result Description
Input Parameters
The unique identifier for the card you'd like to retrieve.
Example Response
{
  "card":{
    "card_id":"c46456a51aba4b1188faee194e413586",
    "card_customer_id":"e78b566900e3413d9434ea9382fd75a1",
    "card_funding":"credit",
    "card_type":"visa",
    "card_last4":"4264",
    "card_expiry_month":"02",
    "card_expiry_year":"2017",
    "card_fingerprint":"822f374285acad4e59d9e67f024e4f63",
    "card_timestamp":"2014-07-04T10:08:09+00:00",
    "card_status":"active"
  },
  "status":"complete",
  "status_message":"complete"
}
                        
                       Result Description
Input Parameters
The unique identifier for the card you'd like to update.
A hash specifying the billing address details you wish to update. You do not have to include each item. The hash has the form:
A hash specifying the payment expiry you wish to update. The hash has the form:
$inputParams = array(
  'card_id' => 'c46456a51aba4b1188faee194e413586',
  'billing_address' => array(
    'address_line1' => '100 New Fake Street',
    'address_line2' => 'Unit 44',
    'city' => 'San Jose',
    'state' => 'CA',
    'country_code' => 'US',
    'zip_postal_code' => '95112'
  ),
  'payment' => array(
    'card_expiry_month' => '04',
    'card_expiry_year' => '2018'
  )
);
	                        			
	                      			Example coming soon
Example Response
{
  "card":{
    "card_id":"c46456a51aba4b1188faee194e413586",
    "card_customer_id":"e78b566900e3413d9434ea9382fd75a1",
    "card_funding":"credit",
    "card_type":"visa",
    "card_last4":"4264",
    "card_expiry_month":"04",
    "card_expiry_year":"2018",
    "card_fingerprint":"3d6e56784acd46bc61eb071cdf99e97c",
    "card_timestamp":"2014-07-04T10:08:09+00:00",
    "card_status":"active"
  },
  "status":"complete",
  "status_message":"complete"
}
                        
                       Result Description
Input Parameters
The unique identifier for the card you'd like to remove.
Example Response
{
  "card":{
    "card_id":"c46456a51aba4b1188faee194e413586",
    "card_status":"deleted"
  },
  "status":"complete",
  "status_message":"complete"
}
                        
                       Result Description
Input Parameters
The unique identifier for the customer you'd like to retrieve the list of cards for.
A hash specifying some parameters used to paginate the returned list. The hash has the form:
Example Response
{
  "cards":[
    {
      "card_id":"c46456a51aba4b1188faee194e413586",
      "card_customer_id":"e78b566900e3413d9434ea9382fd75a1",
      "card_funding":"credit",
      "card_type":"visa",
      "card_last4":"4264",
      "card_expiry_month":"04",
      "card_expiry_year":"2018",
      "card_fingerprint":"3d6e56784acd46bc61eb071cdf99e97c",
      "card_timestamp":"2014-07-04T10:08:09+00:00",
      "card_status":"active"
    },
    {
      "card_id":"704b9219edc144698b60ca9c3eaf8bca",
      "card_customer_id":"e78b566900e3413d9434ea9382fd75a1",
      "card_funding":"credit",
      "card_type":"visa",
      "card_last4":"4585",
      "card_expiry_month":"03",
      "card_expiry_year":"2017",
      "card_fingerprint":"b1504677916ebd129050b285535ed343",
      "card_timestamp":"2014-07-04T11:44:02+00:00",
      "card_status":"active"
    }
  ],
  "status":"complete",
  "status_message":"complete"
}
                        
                       Result Description
Set of methods that enable you to manage customers' addresses.
Input Parameters
The customer_id that you'd like to associate the address with.
If you set the address_customer_id parameter, then optionally, you can also set whether it should become the customers new default_address_id.
A hash specifying the address details you wish to store. The hash has the form:
$inputParams = array(
  'address_customer_id' => 'e78b566900e3413d9434ea9382fd75a1',
  'address_is_default' => 'true',
  'address' => array(
    'first_name' => 'Michelle',
    'last_name' => 'Phan',
    'address_line1' => '98 Fake Street',
    'address_line2' => 'Unit 77',
    'city' => 'San Francisco',
    'state' => 'CA',
    'country_code' => 'US',
    'zip_postal_code' => '94014',
    'phone' => '4158889999'
  )
);
	                        			
	                      			Example coming soon
Example Response
{
  "address":{
  	"address_id":"dfd94786db634a0e5b7a34872hfb168a",
  	"address_customer_id":"e78b566900e3413d9434ea9382fd75a1",
  	"first_name":"Michelle",
  	"last_name":"Phan",
  	"address_line1":"98 Fake Street",
  	"address_line2":"Unit 77",
  	"city":"San Francisco",
  	"state":"CA",
  	"country_code":"US",
  	"zip_postal_code":"94014",
  	"phone":"4158889999",
  	"address_status":"active"
  },
  "status":"complete",
  "status_message":"complete"
}
                        
                       Result Description
Input Parameters
The unique identifier for the address you'd like to retrieve.
Example Response
{
  "address":{
  	"address_id":"dfd94786db634a0e5b7a34872hfb168a",
  	"address_customer_id":"e78b566900e3413d9434ea9382fd75a1",
  	"first_name":"Michelle",
  	"last_name":"Phan",
  	"address_line1":"98 Fake Street",
  	"address_line2":"Unit 77",
  	"city":"San Francisco",
  	"state":"CA",
  	"country_code":"US",
  	"zip_postal_code":"94014",
  	"phone":"4158889999",
  	"address_status":"active"
  },
  "status":"complete",
  "status_message":"complete"
}
                        
                       Result Description
Input Parameters
The unique identifier for the address you'd like to remove.
Example Response
{
  "address":{
    "address_id":"dfd94786db634a0e5b7a34872hfb168a",
    "address_status":"deleted"
  },
  "status":"complete",
  "status_message":"complete"
}
                        
                       Result Description
Input Parameters
The unique identifier for the customer you'd like to retrieve the list of addresses for.
A hash specifying some parameters used to paginate the returned list. The hash has the form:
Example Response
{
  "addresses":[
    {
  	  "address_id":"dfd94786db634a0e5b7a34872hfb168a",
  	  "address_customer_id":"e78b566900e3413d9434ea9382fd75a1",
  	  "first_name":"Michelle",
  	  "last_name":"Phan",
  	  "address_line1":"98 Fake Street",
  	  "address_line2":"Unit 77",
  	  "city":"San Francisco",
  	  "state":"CA",
  	  "country_code":"US",
  	  "zip_postal_code":"94014",
  	  "phone":"4158889999",
  	  "address_status":"active"
    },
    {
  	  "address_id":"2c6ed9109ad8437a9650b13a86a910e4",
  	  "address_customer_id":"e78b566900e3413d9434ea9382fd75a1",
  	  "first_name":"Michelle",
  	  "last_name":"Phan",
  	  "address_line1":"220 Original Street",
  	  "address_line2":"Unit 5",
  	  "city":"Santa Clara",
  	  "state":"CA",
  	  "country_code":"US",
  	  "zip_postal_code":"95050",
  	  "phone":"4158889999",
  	  "address_status":"active"
    }
  ],
  "status":"complete",
  "status_message":"complete"
}
                        
                       Result Description
Input Parameters
A hash specifying the address details you wish to verify. The hash has the form:
Example Response
{
  "address":{
    "address_line1":"650 POST ST UNIT 77",
    "address_line2":"",
    "city":"SAN FRANCISCO",
    "state":"CA",
    "country_code":"US",
    "zip_postal_code":"94109"
  },
  "status":"complete",
  "status_message":"complete"
}
                        
                       Result Description
Input Parameters
A hash specifying the zip code to utilize in looking up a city and state. The hash has the form:
Example Response
{
  "address":{
    "city":"SAN FRANCISCO",
    "state":"CA",
    "zip_postal_code":"94109"
  },
  "status":"complete",
  "status_message":"complete"
}
                        
                       Result Description
Additional information to help you work your way around the varinode API.
shipping_address[state], billing_address[state]
| AL | AK | AS | AZ | 
| AR | CA | CO | CT | 
| DE | DC | FM | FL | 
| GA | GU | HI | ID | 
| IL | IN | IA | KS | 
| KY | LA | ME | MH | 
| MD | MA | MI | MN | 
| MS | MO | MT | NE | 
| NV | NH | NJ | NM | 
| NY | NC | ND | MP | 
| OH | OK | OR | PW | 
| PA | PR | RI | SC | 
| SD | TN | TX | UT | 
| VT | VA | VI | WA | 
| WV | WI | WY | 
shipping_address[country_code], billing_address[country_code]
| AF | AX | AL | DZ | 
| AS | AD | AO | AI | 
| AQ | AG | AR | AM | 
| AW | AU | AT | AZ | 
| BS | BH | BD | BB | 
| BY | BE | BZ | BJ | 
| BM | BT | BO | BA | 
| BW | BV | BR | IO | 
| BN | BG | BF | BI | 
| KH | CM | CA | CV | 
| KY | CF | TD | CL | 
| CN | CX | CC | CO | 
| KM | CG | CD | CK | 
| CR | CI | HR | CU | 
| CY | CZ | DK | DJ | 
| DM | DO | EC | EG | 
| SV | GQ | ER | EE | 
| ET | FK | FO | FJ | 
| FI | FR | GF | PF | 
| TF | GA | GM | GE | 
| DE | GH | GI | GR | 
| GL | GD | GP | GU | 
| GT | GG | GN | GW | 
| GY | HT | HM | VA | 
| HN | HK | HU | IS | 
| IN | ID | IR | IQ | 
| IE | IM | IL | IT | 
| JM | JP | JE | JO | 
| KZ | KE | KI | KR | 
| KW | KG | LA | LV | 
| LB | LS | LR | LY | 
| LI | LT | LU | MO | 
| MK | MG | MW | MY | 
| MV | ML | MT | MH | 
| MQ | MR | MU | YT | 
| MX | FM | MD | MC | 
| MN | ME | MS | MA | 
| MZ | MM | NA | NR | 
| NP | NL | AN | NC | 
| NZ | NI | NE | NG | 
| NU | NF | MP | NO | 
| OM | PK | PW | PS | 
| PA | PG | PY | PE | 
| PH | PN | PL | PT | 
| PR | QA | RE | RO | 
| RU | RW | BL | SH | 
| KN | LC | MF | PM | 
| VC | WS | SM | ST | 
| SA | SN | RS | SC | 
| SL | SG | SK | SI | 
| SB | SO | ZA | GS | 
| ES | LK | SD | SR | 
| SJ | SZ | SE | CH | 
| SY | TW | TJ | TZ | 
| TH | TL | TG | TK | 
| TO | TT | TN | TR | 
| TM | TC | TV | UG | 
| UA | AE | GB | US | 
| UM | UY | UZ | VU | 
| VE | VN | VG | VI | 
| WF | EH | YE | ZM | 
| ZW | 
payment[card_type]
| visa | amex | mastercard | discover | 
payment[card_expiry_month]
| 01 | 02 | 03 | 04 | 
| 05 | 06 | 07 | 08 | 
| 09 | 10 | 11 | 12 | 
payment[card_expiry_year]
| 2014 | 2015 | 2016 | 2017 | 
| 2018 | 2019 | 2020 | 2021 | 
| 2022 | 2023 | 2024 | 2025 | 
| 2026 | 2027 | 2028 | 2029 | 
| 2030 | 
search[gender]
| male | female | 
Category Mapping
| Main Categories | Sub Categories | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Tops : 2 | 
 | |||||||||
| Bottoms : 3 | 
 | |||||||||
| Outerwear : 4 | 
 | |||||||||
| Dresses : 5 | 
 | |||||||||
| Shoes : 6 | 
 | |||||||||
| Beauty : 7 | 
 | |||||||||
| Home : 14 | 
 | |||||||||
| Accessories : 9 | 
 | |||||||||
| Bags : 10 | 
 | |||||||||
| Jewelry : 11 | 
 | |||||||||
| Swimwear : 12 | 
 | |||||||||
| Sets : 13 | 
 | |||||||||
| Underwear & Socks : 8 | 
 | |||||||||
| Baby : 413 | 
 | |||||||||
| Baby : 130 | 
 | |||||||||
| Food : 177 | ||||||||||
| Sports : 404 | ||||||||||
| Pets : 405 |