Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagexml
titleExample 01
collapsetrue
       <PwsSaveClientResponse>
         <PwsSaveClientResult>
            <Messages>
               <PwsMessage>
                  <AdditionalErrorText i:nil="true"/>
                  <ErrorCode i:nil="true"/>
                  <ErrorNumber i:nil="true"/>
                  <ErrorText i:nil="true"/>
                  <Type i:nil="true"/>
                  <ReferenceId1 i:nil="true"/>
                  <ReferenceId2 i:nil="true"/>
               </PwsMessage>
            </Messages>
            <ResponseId>0</ResponseId>
            <Status>Ok</Status>
            <ServerTimestampUtc>2017-12-27T16:48:52.6790058Z</ServerTimestampUtc>
            <Client>
               <ClientDetail>
                  <ClientId i:nil="true"/>
                  <ClientNumber>C001001</ClientNumber>
                  <ClientUid>1152921504606989819</ClientUid>
                  <ClientName>Acme 1000-01</ClientName>
                  <InactiveFlag>false</InactiveFlag>
                  <ParentClientIdentity i:nil="true"/>
                  <Address>
                     <AddressLine1>123 Main Street</AddressLine1>
                     <AddressLine2>Suite 100</AddressLine2>
                     <Attention>Jane Smith</Attention>
                     <City>Boston</City>
                     <CompanyName>Acme 1000-01</CompanyName>
                     <Country>USA</Country>
                     <StateOrProvince>MA</StateOrProvince>
                     <ZipOrPostalCode>02114</ZipOrPostalCode>
                  </Address>
                  <BillingCycleIdentity>
                     <BillingCycleId i:nil="true"/>
                     <BillingCycleName>Monthly</BillingCycleName>
                     <BillingCycleUid>1152921504606853180</BillingCycleUid>
                  </BillingCycleIdentity>
                  <BillingInstructions>Bill on the last day of the month</BillingInstructions>
                  <ClientMessage>We appreciate your business!</ClientMessage>
                  <ClientMessagePlain>We appreciate your business!</ClientMessagePlain>
                  <InheritAddressFlag>false</InheritAddressFlag>
                  <InheritBillingCycleFlag>false</InheritBillingCycleFlag>
                  <InheritBillingInstructionsFlag>false</InheritBillingInstructionsFlag>
                  <InheritClientMessageFlag>false</InheritClientMessageFlag>
                  <InheritInvoiceContentFlag>false</InheritInvoiceContentFlag>
                  <InheritInvoiceScopeFlag>false</InheritInvoiceScopeFlag>
                  <InheritInvoiceTemplateFlag>false</InheritInvoiceTemplateFlag>
                  <InheritPaymentTermFlag>false</InheritPaymentTermFlag>
                  <InheritPurchaseOrderNumberFlag>false</InheritPurchaseOrderNumberFlag>
                  <InheritStandardRatesFlag>false</InheritStandardRatesFlag>
                  <InheritTimeBillingTypeFlag>false</InheritTimeBillingTypeFlag>
                  <InvoiceContent>B</InvoiceContent>
                  <InvoiceScope>E</InvoiceScope>
                  <InvoiceTemplateIdentity>
                     <InvoiceTemplateId i:nil="true"/>
                     <InvoiceTemplateName>A200</InvoiceTemplateName>
                     <InvoiceTemplateUid>1152921504606878904</InvoiceTemplateUid>
                  </InvoiceTemplateIdentity>
                  <NewClientNumber i:nil="true"/>
                  <PaymentTermIdentity>
                     <PaymentTermId i:nil="true"/>
                     <PaymentTermName>Net 60</PaymentTermName>
                     <PaymentTermUid>1152921504606856055</PaymentTermUid>
                  </PaymentTermIdentity>
                  <PurchaseOrderNumber>C001000</PurchaseOrderNumber>
                  <StandardBillingAdjustedDiscountPercent>0</StandardBillingAdjustedDiscountPercent>
                  <StandardContractDiscountPercent>0</StandardContractDiscountPercent>
                  <StandardRateCardIdentity>
                     <RateCardId i:nil="true"/>
                     <RateCardName>USA Rate Card</RateCardName>
                     <RateCardType>R</RateCardType>
                     <RateCardUid>1152921504606860819</RateCardUid>
                  </StandardRateCardIdentity>
                  <TimeBillingType>H</TimeBillingType>
                  <Timestamp>AAAAAA61TDI=</Timestamp>
                  <UserDefinedFields>
                     <PwsUserDefinedFieldDetail>
                        <UdfId i:nil="true"/>
                        <UdfName>Account Owner</UdfName>
                        <UdfUid>1152921504606856794</UdfUid>
                        <BooleanValue i:nil="true"/>
                        <DataType>R</DataType>
                        <DateValue i:nil="true"/>
                        <IntegerValue i:nil="true"/>
                        <ResourceIdentityValue>
                           <ResourceDisplayName>Jack Spratt</ResourceDisplayName>
                           <ResourceId i:nil="true"/>
                           <ResourceReferenceSystemId>E123</ResourceReferenceSystemId>
                           <ResourceUid>1152921504607111573</ResourceUid>
                        </ResourceIdentityValue>
                        <TextValue i:nil="true"/>
                        <UdfTreatment>A</UdfTreatment>
                        <StoplightValues/>
                        <NumericValue i:nil="true"/>
                        <RelationValue i:nil="true"/>
                     </PwsUserDefinedFieldDetail>
                  </UserDefinedFields>
                  <InheritInvoiceEmailSettingsFlag>false</InheritInvoiceEmailSettingsFlag>
                  <InvoiceEmailSettings>
                     <EmailFromUserIdentity>
                        <UserDisplayName>Bettina Borces</UserDisplayName>
                        <UserId i:nil="true"/>
                        <UserReferenceSystemId>Partner - 01</UserReferenceSystemId>
                        <UserUid>1152921504607011056</UserUid>
                     </EmailFromUserIdentity>
                     <EmailInvoiceTemplateIdentity>
                        <InvoiceTemplateId i:nil="true"/>
                        <InvoiceTemplateName>E004</InvoiceTemplateName>
                        <InvoiceTemplateUid>1152921504606878909</InvoiceTemplateUid>
                     </EmailInvoiceTemplateIdentity>
                     <InvoiceEmailEnabledFlag>false</InvoiceEmailEnabledFlag>
                     <InvoiceEmailType>P</InvoiceEmailType>
                     <Recipients>
                        <PwsInvoiceEmailRecipient>
                           <RecipientType>T</RecipientType>
                           <UserIdentity>
                              <UserDisplayName>Jane Doe</UserDisplayName>
                              <UserId i:nil="true"/>
                              <UserReferenceSystemId>E124</UserReferenceSystemId>
                              <UserUid>1152921504607112368</UserUid>
                           </UserIdentity>
                        </PwsInvoiceEmailRecipient>
                     </Recipients>
                  </InvoiceEmailSettings>
                  <InheritRenderReceiptsFlag>false</InheritRenderReceiptsFlag>
                  <RenderReceiptsFlag>false</RenderReceiptsFlag>
                  <AutoApplyAvailableBalanceFlag>false</AutoApplyAvailableBalanceFlag>
                  <InheritAutoApplyAvailableBalanceFlag>false</InheritAutoApplyAvailableBalanceFlag>
                  <InheritTaxTypesFlag>false</InheritTaxTypesFlag>
                  <TaxType1Identity>
                     <TaxTypeCode>VAT</TaxTypeCode>
                     <TaxTypeId i:nil="true"/>
                     <TaxTypeUid>1152921504606868258</TaxTypeUid>
                  </TaxType1Identity>
                  <TaxType2Identity i:nil="true"/>
                  <TaxType3Identity i:nil="true"/>
               </ClientDetail>
            </Client>
            <ClientIdentity>
               <ClientId i:nil="true"/>
               <ClientNumber>C001001</ClientNumber>
               <ClientUid>1152921504606989819</ClientUid>
            </ClientIdentity>
         </PwsSaveClientResult>
      </PwsSaveClientResponse>


PwsSaveClient - Common Errors and Warnings

...

ErrorNumberErrorCodeErrorText
105AtLeastOneItemNotFoundAt least one client requested item was not found. The remaining items, if any, were returned.
11038NoClientsSpecifiedNo clients were specified for retrieval by this request.
11040MaximumClientIdentitiesExceededAttempt to retrieve more than the maximum allowable number of clients at oncePlease specify between 1 and 100 client identities for retrieval.
50045ViewPermissionDeniedPermission deniedYou do not have permission to view this item.
57631ClientNotSpecifiedA specified client reference identity was incomplete. Each client identity must specify either a client id, client uid or client number.
57634UnexpectedErrorRetrievingClientsUnexpected error retrieving clientsThere was an unexpected error while trying to retrieve a client.