I created a listing with a shop seller user: firoma. Then I try to create a receipt with call createReceiptOnSandbox for another user fifirosedeveloper. It returns Internal Error 500, X-Error-Detail: Can't create receipt. I have looked at the obvious stuff. The buyer has a user address (actually 10):
Here are the calls I execute from my code and return data:
1) FindAllUserAddressesCall.printAll(fifiroseDeveloperApiAccess, "fifirosedeveloper", 0, 0);
{"user_address_id":60,"user_id":14888624,"name":"test","first_line":"testline1","second_line":"testline2","city":"testcity","state":"FL","zip":"12345","country_id":209,"country_name":"United States"}
+ 9 more....
Ok, so I have a user address for this 'buyer', on to step 2
2) FindAllShopListingsActiveCall.printAll(firomaApiAccess, "firoma", 0, 0);
{"listing_id":2082,"state":"active","user_id":14888658,"category_id":69151501,"title":"test title","description":"test description","creation_tsz":1343788855,"ending_tsz":1354251600,"original_creation_tsz":1343788855,"last_modified_tsz":1343925722,"price":"10.00","currency_code":"USD","quantity":1,"tags":[],"category_path":["Jewelry","Earrings"],"materials":[],"shop_section_id":0,"featured_rank":0,"state_tsz":1343925722,"hue":0,"saturation":0,"brightness":0,"is_black_and_white":false,"url":"
http://www.etsy.com/listing/2082/test-title","view":0,"num_favorers":0,"who_made":"someone_else","is_supply":true,"when_made":"2010_2012"}
Great, I have an active listing, id 2082. Now, here comes:
3)CreateReceiptOnSandboxCall.testCall(fifiroseDeveloperApiAccess, new int[] {2082});
Here is the logging output:
Aug 2, 2012 12:44:32 PM com.sun.jersey.api.client.filter.LoggingFilter log
INFO: 1 * Client out-bound request
1 > Content-Type: application/json
1 > Authorization: OAuth oauth_signature="e94aAaY%2FsHrCYac3s4E7vYgAHZc%3D", oauth_version="1.0", oauth_nonce="f28eec0e-f49b-40f9-9318-aac6c52ff54e", oauth_consumer_key="zbxfvorncjuihlzwr40m6krj", oauth_signature_method="HMAC-SHA1", oauth_token="f65872a2bd686c82f9ac2fad5d1c95", oauth_timestamp="1343925872"
Aug 2, 2012 12:44:32 PM com.sun.jersey.api.client.filter.LoggingFilter log
INFO: 1 * Client in-bound response
1 < 500
1 < X-Error-Detail: Can't create receipt
1 < Date: Thu, 02 Aug 2012 16:44:41 GMT
1 < X-Etsy-Request-Uuid: dTmEuM8iP794RabhppW4n5yGkZ5U
1 < Content-Length: 20
1 < Set-Cookie: etalb=36386466.1.10.1343925881; expires=Thu, 02-Aug-2012 17:14:41 GMT; path=/; domain=.
etsy.com1 < Set-Cookie: etala=36386466.541125679.1343925881.1343925881.1343925881.1.0; expires=Sun, 03-Aug-2014 04:22:13 GMT; path=/; domain=.
etsy.com1 < X-Cnection: close
Can't create receipt
1 < Content-Type: text/plain;charset=UTF-8
1 < Server: Apache
1 <
Thanks,
Mark