====== GetPackagesRequest ======
==== Overview ====
**GetPackagesRequest** will return a list of all packages for any given store or language.
**Learn More:**
* [[:developer_guide:developer_guide#using-the-apis|Using the APIs]]
* [[:developer_guide:developer_guide#http-status-code|HTTP Status Codes]]
* [[:developer_guide:developer_guide#error-codes|Error Codes]]
* [[:developer_guide:developer_guide#troubleshooting|Troubleshooting]]
===== GetPackagesRequest =====
==== XML ====
string
string
integer
==== Elements ====
^ Name ^ Type ^ Occurrence ^ Meaning ^
| **GetPackagesRequest** | container | required | Parent Element |
| Username | string | required | Merchant API Username (Not your Merchant Center login) |
| Token| string | required | Hash of API Username and Password. [[:developer_guide:developer_guide:LinkID|Creating a Token]] |
| LanguageCode | string | required | ISO Language Code (e.g. en-US). [[:developer_guide:developer_guide:Language_Code|Learn More]] |
===== GetPackagesResponse =====
==== XML ====
string
timestamp
string
string
string
currency
currency
string
string
string
==== Elements ====
^ Name ^ Type ^ Occurrence ^ Meaning ^
| **GetPackagesResponse** | container | required | Parent Element |
| Ack | string | always | Success, Error, or Warning |
| Timestamp | string | always | All responses return the official SB time stamp in UTC/GMT |
| **Packages** | container | always | A container element that contains a list of repeating package elements |
| **Package** | container | always | A container element that contains the package elements |
| Package/LinkID | string | always | The package LinkID |
| Package/PackageName | string | always | The name of the package (e.g. XYZ Annual Magazine Subscription) |
| Package/Price | currency | always | The price of the package |
| Package/TrialPrice | currency | always | The trial price of the package |
| Package/TrialName | string | always | The name of the trial (e.g. Try XYZ Magazine Free for 2 weeks) |
| Package/Disclaimer | string | always | A custom message that accompanies the pricing terms (e.g. Plus shipping, tax, and handling) |
| Package/TrialDescription | string | always | A description of the trial. (e.g. You will receive 2 issues of XYZ Magazine completely free of charge. If you don't wish to continue, you can simply cancel your subscription before the end of the trial.) |