Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Invoice Add (2017-11-26 20:40:42)
- Woocommerce Data:
- Array
- (
- [wc_inv_id] => 4237
- [wc_inv_num] => 3710-TW
- [order_type] =>
- [wc_inv_date] => 2017-08-01 09:14:00
- [wc_inv_due_date] => 2017-08-01 09:14:00
- [customer_note] => Measurements for fleece seat cover:
- rear side to side: 15 3/8 inches
- front side to side: 16 3/4 inches
- front to rear: 10 3/16 inches
- [order_status] => wc-completed
- [wc_cus_id] => 64
- [wc_customerid] => 64
- [_order_key] => wc_order_59809ac0b0597
- [_customer_user] => 64
- [_payment_method] => goe
- [_payment_method_title] => Credit Card
- [_transaction_id] => 35043467
- [_customer_ip_address] => 12.156.143.34
- [_customer_user_agent] => mozilla/5.0 (windows nt 10.0; win64; x64) applewebkit/537.36 (khtml, like gecko) chrome/59.0.3071.115 safari/537.36
- [_created_via] => checkout
- [_date_completed] => 1501875453
- [_completed_date] => 2017-08-04 13:37:33
- [_date_paid] => 1501600450
- [_paid_date] => 2017-08-01 09:14:10
- [_cart_hash] => 9f977ceeae25b5c94e1587a4c5ba3e16
- [_billing_first_name] => Linda
- [_billing_last_name] => Fairbanks
- [_billing_company] =>
- [_billing_address_1] => 7755 Feenstra Road
- [_billing_address_2] =>
- [_billing_city] => Paso Robles
- [_billing_state] => CA
- [_billing_postcode] => 93446
- [_billing_country] => US
- [_billing_email] => kvgreen@sbcglobal.net
- [_billing_phone] => 8183713464
- [_shipping_first_name] => Linda
- [_shipping_last_name] => Fairbanks
- [_shipping_company] =>
- [_shipping_address_1] => 7755 Feenstra Road
- [_shipping_address_2] =>
- [_shipping_city] => Paso Robles
- [_shipping_state] => CA
- [_shipping_postcode] => 93446
- [_shipping_country] => US
- [_order_currency] => USD
- [_cart_discount] =>
- [_cart_discount_tax] =>
- [_order_shipping] => 20.74
- [_order_shipping_tax] =>
- [_order_tax] => 19.22
- [_order_total] => 287.96
- [_order_version] => 3.2.5
- [_prices_include_tax] => no
- [_billing_address_index] => Linda Fairbanks 7755 Feenstra Road Paso Robles CA 93446 US kvgreen@sbcglobal.net 8183713464
- [_shipping_address_index] => Linda Fairbanks 7755 Feenstra Road Paso Robles CA 93446 US
- [_shipping_method] => a:1:{i:0;s:27:"usps:flat_rate_box_priority";}
- [_order_number] => 3710
- [_order_number_formatted] => 3710-TW
- [_order_number_meta] => a:3:{s:6:"prefix";s:0:"";s:6:"suffix";s:3:"-TW";s:6:"length";s:1:"4";}
- [_download_permissions_granted] => yes
- [_recorded_sales] => yes
- [_recorded_coupon_usage_counts] => yes
- [_edit_lock] => 1511728185:383
- [_edit_last] => 4
- [_aftership_tracking_provider] => usps
- [_aftership_tracking_provider_name] => USPS
- [_aftership_tracking_required_fields] =>
- [_aftership_tracking_number] => 9405511899220837110364
- [_aftership_tracking_shipdate] =>
- [_aftership_tracking_postal] =>
- [_aftership_tracking_account] =>
- [_aftership_tracking_key] =>
- [_aftership_tracking_destination_country] =>
- [used_coupons] => Array
- (
- )
- [shipping_details] => Array
- (
- [0] => Array
- (
- [method_id] => usps:flat_rate_box_priority
- [cost] => 20.74
- [total_tax] => 0
- [taxes] => a:1:{s:5:"total";a:1:{i:3837;s:0:"";}}
- [Package 1] => Priority Mail Flat Rate Large Box - 23.69 × 11.75 × 3 (in) 3.42lbs × 1
- [name] => Priority Mail Flat Rate®
- [type] => shipping
- )
- )
- [order_shipping_total] => 20.74
- [tax_details] => Array
- (
- [0] => Array
- (
- [rate_id] => 3837
- [label] => Sales Tax ( 7.7500% )
- [compound] =>
- [tax_amount] => 19.22
- [shipping_tax_amount] => 0
- [name] => US-CA-PASO ROBLES-1
- [type] => tax
- )
- )
- [qbo_inv_items] => Array
- (
- [0] => Array
- (
- [Description] => Breast Collars
- Primary Saddle Color: Brown
- Edge Tooling: Barbed Wire Tooling
- Collar Size: Medium
- Conchos: None
- Hardware: Stainless Steel
- [Qty] => 1
- [UnitPrice] => 149
- [ItemRef] => 792
- [acof_map_product] =>
- [qbo_product_type] => Inventory
- [Taxed] => 1
- [ClassRef] =>
- [product_id] => 3774
- [variation_id] => 0
- [tax_class] =>
- [line_subtotal] => 149
- [line_subtotal_tax] => 11.5475
- [line_total] => 149
- [line_tax] => 11.5475
- [line_tax_data] => a:2:{s:5:"total";a:1:{i:3837;s:7:"11.5475";}s:8:"subtotal";a:1:{i:3837;s:7:"11.5475";}}
- [tmcartepo_data] => a:5:{i:0;a:24:{s:4:"mode";s:7:"builder";s:8:"cssclass";s:0:"";s:15:"hidelabelincart";s:0:"";s:15:"hidevalueincart";s:0:"";s:16:"hidelabelinorder";s:0:"";s:16:"hidevalueinorder";s:0:"";s:7:"element";a:3:{s:4:"type";s:5:"radio";s:10:"rules_type";a:6:{s:7:"Black_0";a:1:{i:0;s:0:"";}s:7:"Brown_1";a:1:{i:0;s:0:"";}s:10:"Mahogany_2";a:1:{i:0;s:0:"";}s:7:"Honey_3";a:1:{i:0;s:0:"";}s:10:"Dark Oil_4";a:1:{i:0;s:0:"";}s:11:"Light Oil_5";a:1:{i:0;s:0:"";}}s:1:"_";a:1:{s:10:"price_type";s:0:"";}}s:4:"name";s:20:"Primary Saddle Color";s:5:"value";s:5:"Brown";s:5:"price";i:0;s:7:"section";s:23:"5910b32fcf9a26.74247342";s:13:"section_label";s:20:"Primary Saddle Color";s:19:"percentcurrenttotal";i:0;s:10:"currencies";a:0:{}s:18:"price_per_currency";a:1:{s:3:"USD";s:0:"";}s:8:"quantity";s:1:"1";s:8:"multiple";s:1:"1";s:3:"key";s:7:"Brown_1";s:10:"use_images";s:6:"images";s:10:"use_colors";s:0:"";s:21:"changes_product_image";s:0:"";s:7:"imagesp";s:0:"";s:6:"images";s:100:"https://specializedsaddles.com/wp-content/uploads/2016/10/Specialized-Saddles-Brown-Saddle-Color.jpg";s:5:"color";s:0:"";}i:1;a:24:{s:4:"mode";s:7:"builder";s:8:"cssclass";s:0:"";s:15:"hidelabelincart";s:0:"";s:15:"hidevalueincart";s:0:"";s:16:"hidelabelinorder";s:0:"";s:16:"hidevalueinorder";s:0:"";s:7:"element";a:3:{s:4:"type";s:5:"radio";s:10:"rules_type";a:7:{s:12:"No Tooling_0";a:1:{i:0;s:0:"";}s:23:""S" Tooling_1";a:1:{i:0;s:0:"";}s:21:"Barbed Wire Tooling_2";a:1:{i:0;s:0:"";}s:21:"Basketweave Tooling_3";a:1:{i:0;s:0:"";}s:19:"Southwest Tooling_4";a:1:{i:0;s:0:"";}s:16:"Floral Tooling_5";a:1:{i:0;s:0:"";}s:18:"Oak Leaf Tooling_6";a:1:{i:0;s:0:"";}}s:1:"_";a:1:{s:10:"price_type";s:0:"";}}s:4:"name";s:12:"Edge Tooling";s:5:"value";s:19:"Barbed Wire Tooling";s:5:"price";d:20;s:7:"section";s:23:"5910b32fcf9a59.83012120";s:13:"section_label";s:12:"Edge Tooling";s:19:"percentcurrenttotal";i:0;s:10:"currencies";a:0:{}s:18:"price_per_currency";a:1:{s:3:"USD";d:20;}s:8:"quantity";s:1:"1";s:8:"multiple";s:1:"1";s:3:"key";s:21:"Barbed Wire Tooling_2";s:10:"use_images";s:6:"images";s:10:"use_colors";s:0:"";s:21:"changes_product_image";s:0:"";s:7:"imagesp";s:0:"";s:6:"images";s:77:"https://specializedsaddles.com/wp-content/uploads/2015/07/Barbwire-300x41.jpg";s:5:"color";s:0:"";}i:2;a:24:{s:4:"mode";s:7:"builder";s:8:"cssclass";s:0:"";s:15:"hidelabelincart";s:0:"";s:15:"hidevalueincart";s:0:"";s:16:"hidelabelinorder";s:0:"";s:16:"hidevalueinorder";s:0:"";s:7:"element";a:3:{s:4:"type";s:5:"radio";s:10:"rules_type";a:2:{s:13:"Extra Large_0";a:1:{i:0;s:0:"";}s:8:"Medium_1";a:1:{i:0;s:0:"";}}s:1:"_";a:1:{s:10:"price_type";s:0:"";}}s:4:"name";s:11:"Collar Size";s:5:"value";s:6:"Medium";s:5:"price";i:0;s:7:"section";s:23:"5910b32fcf9a87.29138438";s:13:"section_label";s:11:"Collar Size";s:19:"percentcurrenttotal";i:0;s:10:"currencies";a:0:{}s:18:"price_per_currency";a:1:{s:3:"USD";s:0:"";}s:8:"quantity";s:1:"1";s:8:"multiple";s:1:"1";s:3:"key";s:8:"Medium_1";s:10:"use_images";s:0:"";s:10:"use_colors";s:0:"";s:21:"changes_product_image";s:0:"";s:7:"imagesp";s:0:"";s:6:"images";s:0:"";s:5:"color";s:0:"";}i:3;a:24:{s:4:"mode";s:7:"builder";s:8:"cssclass";s:0:"";s:15:"hidelabelincart";s:0:"";s:15:"hidevalueincart";s:0:"";s:16:"hidelabelinorder";s:0:"";s:16:"hidevalueinorder";s:0:"";s:7:"element";a:3:{s:4:"type";s:5:"radio";s:10:"rules_type";a:10:{s:6:"None_0";a:1:{i:0;s:0:"";}s:13:"Brass Berry_1";a:1:{i:0;s:0:"";}s:14:"Copper Berry_2";a:1:{i:0;s:0:"";}s:14:"Silver Berry_3";a:1:{i:0;s:0:"";}s:16:"Engraved Heart_4";a:1:{i:0;s:0:"";}s:15:"Engraved Rope_5";a:1:{i:0;s:0:"";}s:11:"Gold Star_6";a:1:{i:0;s:0:"";}s:13:"Silver Star_7";a:1:{i:0;s:0:"";}s:12:"HSHW Black_8";a:1:{i:0;s:0:"";}s:13:"HSHW Silver_9";a:1:{i:0;s:0:"";}}s:1:"_";a:1:{s:10:"price_type";s:0:"";}}s:4:"name";s:7:"Conchos";s:5:"value";s:4:"None";s:5:"price";i:0;s:7:"section";s:23:"5910b32fcf9ab0.36486667";s:13:"section_label";s:7:"Conchos";s:19:"percentcurrenttotal";i:0;s:10:"currencies";a:0:{}s:18:"price_per_currency";a:1:{s:3:"USD";s:0:"";}s:8:"quantity";s:1:"1";s:8:"multiple";s:1:"1";s:3:"key";s:6:"None_0";s:10:"use_images";s:6:"images";s:10:"use_colors";s:0:"";s:21:"changes_product_image";s:0:"";s:7:"imagesp";s:0:"";s:6:"images";s:71:"https://specializedsaddles.com/wp-content/uploads/2015/05/No-Concho.jpg";s:5:"color";s:0:"";}i:4;a:24:{s:4:"mode";s:7:"builder";s:8:"cssclass";s:0:"";s:15:"hidelabelincart";s:0:"";s:15:"hidevalueincart";s:0:"";s:16:"hidelabelinorder";s:0:"";s:16:"hidevalueinorder";s:0:"";s:7:"element";a:3:{s:4:"type";s:5:"radio";s:10:"rules_type";a:2:{s:17:"Stainless Steel_0";a:1:{i:0;s:0:"";}s:7:"Brass_1";a:1:{i:0;s:0:"";}}s:1:"_";a:1:{s:10:"price_type";s:0:"";}}s:4:"name";s:8:"Hardware";s:5:"value";s:15:"Stainless Steel";s:5:"price";i:0;s:7:"section";s:23:"5910b32fcf9ae4.58454592";s:13:"section_label";s:8:"Hardware";s:19:"percentcurrenttotal";i:0;s:10:"currencies";a:0:{}s:18:"price_per_currency";a:1:{s:3:"USD";s:0:"";}s:8:"quantity";s:1:"1";s:8:"multiple";s:1:"1";s:3:"key";s:17:"Stainless Steel_0";s:10:"use_images";s:0:"";s:10:"use_colors";s:0:"";s:21:"changes_product_image";s:0:"";s:7:"imagesp";s:0:"";s:6:"images";s:0:"";s:5:"color";s:0:"";}}
- [tm_epo_product_original_price] => a:1:{i:0;s:6:"129.00";}
- [tm_epo] => a:1:{i:0;i:1;}
- [type] => line_item
- )
- [1] => Array
- (
- [Description] => Custom Fit Fleece Seat - Fleece Seat Color: camel
- [Qty] => 1
- [UnitPrice] => 99
- [ItemRef] => 977
- [acof_map_product] =>
- [qbo_product_type] => Inventory
- [Taxed] => 1
- [ClassRef] =>
- [product_id] => 1221
- [variation_id] => 1230
- [tax_class] =>
- [line_subtotal] => 99
- [line_subtotal_tax] => 7.6725
- [line_total] => 99
- [line_tax] => 7.6725
- [line_tax_data] => a:2:{s:5:"total";a:1:{i:3837;s:6:"7.6725";}s:8:"subtotal";a:1:{i:3837;s:6:"7.6725";}}
- [saddle-model] => Featherweight Trail
- [pa_fleece-seat-color] => camel
- [type] => line_item
- )
- )
- [dc_gt_fees] => Array
- (
- )
- [qbo_customerid] => 70
- [manual] => 1
- )
- QuickBooks Object:
- QuickBooks_IPP_Object_Invoice Object
- (
- [_data:protected] => Array
- (
- [DocNumber] => 3710-TW
- [TxnDate] => 2017-08-01
- [DueDate] => 2017-08-01
- [CustomerRef] => 70
- [GlobalTaxCalculation] => TaxExclusive
- [ApplyTaxAfterDiscount] => 1
- [Line] => Array
- (
- [0] => QuickBooks_IPP_Object_Line Object
- (
- [_data:protected] => Array
- (
- [DetailType] => SalesItemLineDetail
- [Amount] => 149
- [Description] => Breast Collars
- Primary Saddle Color: Brown
- Edge Tooling: Barbed Wire Tooling
- Collar Size: Medium
- Conchos: None
- Hardware: Stainless Steel
- [SalesItemLineDetail] => Array
- (
- [0] => QuickBooks_IPP_Object_SalesItemLineDetail Object
- (
- [_data:protected] => Array
- (
- [TaxCodeRef] => TAX
- [ItemRef] => 792
- [Qty] => 1
- [UnitPrice] => 149
- )
- )
- )
- )
- )
- [1] => QuickBooks_IPP_Object_Line Object
- (
- [_data:protected] => Array
- (
- [DetailType] => SalesItemLineDetail
- [Amount] => 99
- [Description] => Custom Fit Fleece Seat - Fleece Seat Color: camel
- [SalesItemLineDetail] => Array
- (
- [0] => QuickBooks_IPP_Object_SalesItemLineDetail Object
- (
- [_data:protected] => Array
- (
- [TaxCodeRef] => TAX
- [ItemRef] => 977
- [Qty] => 1
- [UnitPrice] => 99
- )
- )
- )
- )
- )
- [2] => QuickBooks_IPP_Object_Line Object
- (
- [_data:protected] => Array
- (
- [DetailType] => SalesItemLineDetail
- [Amount] => 20.74
- [Description] => Shipping (Priority Mail Flat Rate®)
- [SalesItemLineDetail] => Array
- (
- [0] => QuickBooks_IPP_Object_SalesItemLineDetail Object
- (
- [_data:protected] => Array
- (
- [ItemRef] => 1136
- [UnitPrice] => 20.74
- [TaxCodeRef] => NON
- )
- )
- )
- )
- )
- )
- [BillEmail] => QuickBooks_IPP_Object_BillEmail Object
- (
- [_data:protected] => Array
- (
- [Address] => kvgreen@sbcglobal.net
- )
- )
- [BillAddr] => QuickBooks_IPP_Object_BillAddr Object
- (
- [_data:protected] => Array
- (
- [Line1] => Linda Fairbanks
- [Line2] =>
- [Line3] => 7755 Feenstra Road
- [Line4] =>
- [City] => Paso Robles
- [Country] => United States (US)
- [CountrySubDivisionCode] => CA
- [PostalCode] => 93446
- )
- )
- [ShipAddr] => QuickBooks_IPP_Object_ShipAddr Object
- (
- [_data:protected] => Array
- (
- [Line1] => Linda Fairbanks
- [Line2] =>
- [Line3] => 7755 Feenstra Road
- [Line4] =>
- [City] => Paso Robles
- [Country] => United States (US)
- [CountrySubDivisionCode] => CA
- [PostalCode] => 93446
- )
- )
- [CustomerMemo] => Measurements for fleece seat cover:
- rear side to side: 15 3/8 inches
- front side to side: 16 3/4 inches
- front to rear: 10 3/16 inches
- )
- )
- Request:
- POST https://quickbooks.api.intuit.com/v3/company/193514581004539/invoice?requestid=ac996b01-190f-3124-e5b9-e6e0621b4c8c&minorversion=6 HTTP/1.1
- Content-Type: application/xml
- Authorization: OAuth realm="", oauth_signature_method="HMAC-SHA1", oauth_signature="IZyHPRBvHweAtHtEVlZ8roE8%2F2I%3D", oauth_nonce="OCieg", oauth_timestamp="1511728841", oauth_token="lvprdn1VS7DGvH6VQ3oGqI9sYXp9DsDHrMqgxRA2eJY8mdpb", oauth_consumer_key="qyprdV5QGYkkp5FuIlTREciCvk1FoC", oauth_version="1.0"
- Content-Length: 2579
- <Invoice xmlns="http://schema.intuit.com/finance/v3">
- <DocNumber>3710-TW</DocNumber>
- <TxnDate>2017-08-01</TxnDate>
- <DueDate>2017-08-01</DueDate>
- <CustomerRef>70</CustomerRef>
- <GlobalTaxCalculation>TaxExclusive</GlobalTaxCalculation>
- <ApplyTaxAfterDiscount>1</ApplyTaxAfterDiscount>
- <Line xmlns="http://schema.intuit.com/finance/v3">
- <Amount>149</Amount>
- <DetailType>SalesItemLineDetail</DetailType>
- <Description>Breast Collars
- Primary Saddle Color: Brown
- Edge Tooling: Barbed Wire Tooling
- Collar Size: Medium
- Conchos: None
- Hardware: Stainless Steel</Description>
- <SalesItemLineDetail xmlns="http://schema.intuit.com/finance/v3">
- <TaxCodeRef>TAX</TaxCodeRef>
- <ItemRef>792</ItemRef>
- <Qty>1</Qty>
- <UnitPrice>149</UnitPrice>
- </SalesItemLineDetail>
- </Line>
- <Line xmlns="http://schema.intuit.com/finance/v3">
- <Amount>99</Amount>
- <DetailType>SalesItemLineDetail</DetailType>
- <Description>Custom Fit Fleece Seat - Fleece Seat Color: camel</Description>
- <SalesItemLineDetail xmlns="http://schema.intuit.com/finance/v3">
- <TaxCodeRef>TAX</TaxCodeRef>
- <ItemRef>977</ItemRef>
- <Qty>1</Qty>
- <UnitPrice>99</UnitPrice>
- </SalesItemLineDetail>
- </Line>
- <Line xmlns="http://schema.intuit.com/finance/v3">
- <Amount>20.74</Amount>
- <DetailType>SalesItemLineDetail</DetailType>
- <Description>Shipping (Priority Mail Flat Rate®)</Description>
- <SalesItemLineDetail xmlns="http://schema.intuit.com/finance/v3">
- <ItemRef>1136</ItemRef>
- <UnitPrice>20.74</UnitPrice>
- <TaxCodeRef>NON</TaxCodeRef>
- </SalesItemLineDetail>
- </Line>
- <BillEmail xmlns="http://schema.intuit.com/finance/v3">
- <Address>kvgreen@sbcglobal.net</Address>
- </BillEmail>
- <BillAddr xmlns="http://schema.intuit.com/finance/v3">
- <Line1>Linda Fairbanks</Line1>
- <Line2></Line2>
- <Line3>7755 Feenstra Road</Line3>
- <Line4></Line4>
- <City>Paso Robles</City>
- <Country>United States (US)</Country>
- <CountrySubDivisionCode>CA</CountrySubDivisionCode>
- <PostalCode>93446</PostalCode>
- </BillAddr>
- <ShipAddr xmlns="http://schema.intuit.com/finance/v3">
- <Line1>Linda Fairbanks</Line1>
- <Line2></Line2>
- <Line3>7755 Feenstra Road</Line3>
- <Line4></Line4>
- <City>Paso Robles</City>
- <Country>United States (US)</Country>
- <CountrySubDivisionCode>CA</CountrySubDivisionCode>
- <PostalCode>93446</PostalCode>
- </ShipAddr>
- <CustomerMemo>Measurements for fleece seat cover:
- rear side to side: 15 3/8 inches
- front side to side: 16 3/4 inches
- front to rear: 10 3/16 inches</CustomerMemo>
- </Invoice>
- Response:
- HTTP/1.1 100 Continue
- HTTP/1.1 400 Bad Request
- Server: nginx
- Date: Sun, 26 Nov 2017 20:40:41 GMT
- Content-Type: application/xml
- Content-Length: 450
- Connection: keep-alive
- Keep-Alive: timeout=5
- Strict-Transport-Security: max-age=15552000
- intuit_tid: 41faaa2d-55f4-3109-3826-1c5e3a910c35
- Vary: Accept-Encoding
- <?xml version="1.0" encoding="UTF-8" standalone="yes"?><IntuitResponse xmlns="http://schema.intuit.com/finance/v3" time="2017-11-26T12:40:41.003-08:00"><Fault type="ValidationFault"><Error code="2500" element=""><Message>Invalid Reference Id</Message><Detail>Invalid Reference Id : Something you're trying to use has been made inactive. Check the fields with accounts, customers, items, vendors or employees.</Detail></Error></Fault></IntuitResponse>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement