Need to create orders through API that get processed for payment later on

21 views
Skip to first unread message

Sveta

unread,
Mar 6, 2012, 9:50:17 AM3/6/12
to ChannelAdvisor Developer Network
Hello!

This is just for testing. I need to create orders that I can test
refunds on.

We have real (not sandbox) PayPal accounts to pay for these orders,
but so far I can only create an order manually, which obviously takes
a long time.

My goal to have such order created through an API, and either:

1. Fake the payment information in such away that refund would still
happen (probably impossible?), or
2. Have the payment information contain all of the needed information,
so the refund can be processed, after I have created the order through
API.


I tried to set PaymentTransactionID, using a real number from another
transaction. I tried setting the submitted status -- didn't work
either.

Basically I'm trying to figure out if there is a way to create an
order, which will either result in email, so checkout can be
completed, or, even better, to have the payment be processed based on
the provided information as soon as the order is created.

I really appreciate all of the help :)

Here is an example of an order I tried to create.

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soap:Header/>
<soap:Body>
<GetOrderListResponse xmlns="http://api.channeladvisor.com/
webservices/">
<GetOrderListResult>
<Status>Success</Status>
<MessageCode>0</MessageCode>
<ResultData>
<OrderResponseItem xmlns:q1="http://
api.channeladvisor.com/datacontracts/orders"

xsi:type="q1:OrderResponseDetailComplete">
<q1:NumberOfMatches>1</q1:NumberOfMatches>
<q1:OrderTimeGMT>2012-03-05T22:16:29</
q1:OrderTimeGMT>
<q1:LastUpdateDate>2012-03-05T22:16:30.197</
q1:LastUpdateDate>
<q1:TotalOrderAmount>0.1000</
q1:TotalOrderAmount>
<q1:OrderState>Active</q1:OrderState>
<q1:DateCancelledGMT xsi:nil="true"/>
<q1:OrderID>xxxx</q1:OrderID>
<q1:ClientOrderIdentifier>9470598</
q1:ClientOrderIdentifier>
<q1:SellerOrderID/>
<q1:FlagStyle xsi:nil="true"/>
<q1:OrderStatus>
<q1:CheckoutStatus>Completed</
q1:CheckoutStatus>
<q1:CheckoutDateGMT>2012-03-05T22:16:29</
q1:CheckoutDateGMT>
<q1:PaymentStatus>Cleared</
q1:PaymentStatus>
<q1:PaymentDateGMT>2012-03-05T22:16:29</
q1:PaymentDateGMT>
<q1:ShippingStatus>Unshipped</
q1:ShippingStatus>
<q1:ShippingDateGMT>1900-01-01T00:00:00</
q1:ShippingDateGMT>
<q1:OrderRefundStatus>FailedAttemptsOnly</
q1:OrderRefundStatus>
</q1:OrderStatus>
<q1:ResellerID/>
<q1:BuyerEmailAddress>xxxx</
q1:BuyerEmailAddress>
<q1:EmailOptIn>false</q1:EmailOptIn>
<q1:PaymentInfo>
<q1:PaymentType>PayPal</q1:PaymentType>
<q1:CreditCardLast4>0000</
q1:CreditCardLast4>
<q1:PayPalID/>
<q1:MerchantReferenceNumber/>
<q1:PaymentTransactionID>xxxx</
q1:PaymentTransactionID>
</q1:PaymentInfo>
<q1:ShippingInfo>
<q1:AddressLine1>MEOW MEOW</
q1:AddressLine1>
<q1:AddressLine2/>
<q1:City>xxxx</q1:City>
<q1:Region>xxxx</q1:Region>
<q1:RegionDescription>xxxx</
q1:RegionDescription>
<q1:PostalCode>xxxx</q1:PostalCode>
<q1:CountryCode>US</q1:CountryCode>
<q1:CompanyName/>
<q1:JobTitle/>
<q1:Title/>
<q1:FirstName>Test</q1:FirstName>
<q1:LastName>xxxx</q1:LastName>
<q1:Suffix/>
<q1:PhoneNumberDay>1231231234</
q1:PhoneNumberDay>
<q1:PhoneNumberEvening/>
<q1:ShipmentList>
<q1:Shipment>
<q1:ShippingCarrier>UPS</
q1:ShippingCarrier>
<q1:ShippingClass>Standard</
q1:ShippingClass>
<q1:TrackingNumber/>
</q1:Shipment>
</q1:ShipmentList>
<q1:ShippingInstructions/>
<q1:EstimatedShipDate xsi:nil="true"/>
<q1:DeliveryDate xsi:nil="true"/>
</q1:ShippingInfo>
<q1:BillingInfo>
<q1:AddressLine1>MEOW MEOW</
q1:AddressLine1>
<q1:AddressLine2/>
<q1:City>xxxx</q1:City>
<q1:Region>xxxx</q1:Region>
<q1:RegionDescription>xxxx</
q1:RegionDescription>
<q1:PostalCode>xxxx</q1:PostalCode>
<q1:CountryCode>US</q1:CountryCode>
<q1:CompanyName/>
<q1:JobTitle/>
<q1:Title/>
<q1:FirstName/>
<q1:LastName>xxxx</q1:LastName>
<q1:Suffix/>
<q1:PhoneNumberDay/>
<q1:PhoneNumberEvening/>
</q1:BillingInfo>
<q1:FlagDescription/>
<q1:ShoppingCart>
<q1:CartID>xxxx</q1:CartID>
<q1:CheckoutSource>Unspecified</
q1:CheckoutSource>
<q1:VATTaxCalculationOption>Unspecified</
q1:VATTaxCalculationOption>
<q1:VATShippingOption>Unspecified</
q1:VATShippingOption>
<q1:VATGiftWrapOption>Unspecified</
q1:VATGiftWrapOption>
<q1:LineItemSKUList>
<q1:OrderLineItemItem
xsi:type="q1:OrderLineItemItemResponse">
<q1:LineItemType>SKU</
q1:LineItemType>
<q1:UnitPrice>0.1000</
q1:UnitPrice>
<q1:LineItemID>xxxx</
q1:LineItemID>
<q1:AllowNegativeQuantity>false</
q1:AllowNegativeQuantity>
<q1:Quantity>1</q1:Quantity>
<q1:ItemSaleSource>EBAY_US</
q1:ItemSaleSource>
<q1:SKU>xxxx</q1:SKU>
<q1:Title>TEST LISTING - DO NOT
BUY - Apple iPhone 2G 8GB Cell Phone</q1:Title>
<q1:BuyerUserID>xxxx</
q1:BuyerUserID>
<q1:BuyerFeedbackRating>0</
q1:BuyerFeedbackRating>
<q1:SalesSourceID>xxxx</
q1:SalesSourceID>
<q1:VATRate>0</q1:VATRate>
<q1:TaxCost>0.0000</q1:TaxCost>
<q1:ShippingCost>0.0000</
q1:ShippingCost>
<q1:ShippingTaxCost>0.0000</
q1:ShippingTaxCost>
<q1:GiftWrapCost>0.0000</
q1:GiftWrapCost>
<q1:GiftWrapTaxCost>0.0000</
q1:GiftWrapTaxCost>
<q1:GiftMessage/>
<q1:GiftWrapLevel/>
<q1:RecyclingFee>0.0000</
q1:RecyclingFee>
<q1:UnitWeight
UnitOfMeasure="LB">2</q1:UnitWeight>
<q1:WarehouseLocation/>
<q1:UserName/>
<q1:DistributionCenterCode>CMF
Dallas</q1:DistributionCenterCode>
<q1:IsFBA>false</q1:IsFBA>
</q1:OrderLineItemItem>
</q1:LineItemSKUList>
<q1:LineItemInvoiceList>
<q1:OrderLineItemInvoice>
<q1:LineItemType>SalesTax</
q1:LineItemType>
<q1:UnitPrice>0.0000</
q1:UnitPrice>
</q1:OrderLineItemInvoice>
<q1:OrderLineItemInvoice>
<q1:LineItemType>Shipping</
q1:LineItemType>
<q1:UnitPrice>0.0000</
q1:UnitPrice>
</q1:OrderLineItemInvoice>
<q1:OrderLineItemInvoice>

<q1:LineItemType>ShippingInsurance</q1:LineItemType>
<q1:UnitPrice>0.0000</
q1:UnitPrice>
</q1:OrderLineItemInvoice>
<q1:OrderLineItemInvoice>
<q1:LineItemType>VATShipping</
q1:LineItemType>
<q1:UnitPrice>0.0000</
q1:UnitPrice>
</q1:OrderLineItemInvoice>
<q1:OrderLineItemInvoice>
<q1:LineItemType>GiftWrap</
q1:LineItemType>
<q1:UnitPrice>0.0000</
q1:UnitPrice>
</q1:OrderLineItemInvoice>
<q1:OrderLineItemInvoice>
<q1:LineItemType>VATGiftWrap</
q1:LineItemType>
<q1:UnitPrice>0.0000</
q1:UnitPrice>
</q1:OrderLineItemInvoice>
</q1:LineItemInvoiceList>
<q1:LineItemPromoList>
<q1:OrderLineItemPromo>
<q1:LineItemType>Promotion</
q1:LineItemType>
<q1:UnitPrice>0.0000</
q1:UnitPrice>
<q1:PromoCode/>
</q1:OrderLineItemPromo>
</q1:LineItemPromoList>
</q1:ShoppingCart>
<q1:CustomValueList/>
<q1:BuyerIpAddress/>
<q1:TransactionNotes/>
</OrderResponseItem>
</ResultData>
</GetOrderListResult>
</GetOrderListResponse>
</soap:Body>
</soap:Envelope>

Sveta

unread,
Mar 6, 2012, 10:32:31 AM3/6/12
to ChannelAdvisor Developer Network
Also, I was thinking of creating orders and go through checkout
through ChannelAdvisor, but this feature seems to be not working:

https://checkout.channeladvisor.com/checkout/1252/chk30.asp?pz=53000530&iz=9478296&tz=28422286&ca_verify=30

Once I click "Complete Checkout", I get navigated to:
https://www.paypal.com/cgi-bin/webscr with a message:

"Transaction Cancelled. This function is temporarily unavailable.
Please try your payment again later by returning to eBay and clicking
the My eBay button."

Here is a screenshot of this page: http://gyazo.com/ad8c4e249d91fa98e457b3a273ace7b8

I have tried multiple times and then asked around. I found out that
this feature has not been working for at least 1 week now. Is this
something that could fix asap please?

[CA] Marshall McClure

unread,
Mar 6, 2012, 11:00:07 AM3/6/12
to ChannelAdvisor Developer Network
There is no way to manipulate the payment info of an order in such a
way that it would be possible to perform a refund. Your test orders
will have to go through Checkout for you to be able to process a
refund. If you want to create test orders in the API with the
intention of going through Checkout, the sale source should be
DIRECT_SALE, not EBAY_US. The problems you are encountering most
likely have to do with Checkout trying to match up the order with an
eBay listing that does not exist.

On Mar 6, 10:32 am, Sveta <svetlana.a.savely...@gmail.com> wrote:
> Also, I was thinking of creating orders and go through checkout
> through ChannelAdvisor, but this feature seems to be not working:
>
> https://checkout.channeladvisor.com/checkout/1252/chk30.asp?pz=530005...
>
> Once I click "Complete Checkout", I get navigated to:https://www.paypal.com/cgi-bin/webscrwith a message:
> ...
>
> read more »
Reply all
Reply to author
Forward
0 new messages