Language

2Checkout Documentation

Ship

You must specify your API username and password using the twocheckout.Api.credentials method before calling a method in this class.

Method

ship

Use to mark a sale as shipped.

Arguments

  • dictionary Parameters
    • Dictionary containing mark_shipped parameters. This method can only be called on a sale instance. Parameters -> API Mark Shipped

Returns

Returns a Python object.

Example Usage:

twocheckout.Api.credentials({'username':'APIuser1817037', 'password':'APIpass1817037'})

params = {
    'sale_id': 4774467596,
    'tracking_number': 'test123456'
    }

sale = twocheckout.Sale.find(params)

result = sale.ship(params)

Example Response:

{
  'response_code': 'OK',
  'response_message': 'Sale marked shipped.'
}