RepslyAPI service help page

Export clients
Method : GET
Path : export/clients/{lastTimestamp}
Export client notes
Method : GET
Path : export/clientnotes/{lastClientNoteID}
Export visits
Method : GET
Path : export/visits/{lastTimestamp}
Export retail audits
Method : GET
Path : export/retailaudits/{lastRetailAuditID}
Export purchase orders
Method : GET
Path : export/purchaseorders/{lastDocumentID}
Export forms
Method : GET
Path : export/forms/{lastFormID}
Export photos
Method : GET
Path : export/photos/{lastPhotoID}
Export daily working time
Method : GET
Path : export/dailyworkingtime/{lastDailyWorkingTimeID}
Export visit schedules
Method : GET
Path : export/visitschedules/{beginDateTime}/{endDateTime}
Export representatives
Method : GET
Path : export/representatives
Export pricelists basic data
Method : GET
Path : export/pricelists
Export pricelist items
Method : GET
Path : export/pricelistsItems/{pricelistID}
Export products
Method : GET
Path : export/products/{lastProductID}
Export document types basic data
Method : GET
Path : export/documentTypes
Query status of the import job
Method : GET
Path : export/importStatus/{importJobID}
Import pricelist
Method : POST
Path : import/pricelist
Import product
Method : POST
Path : import/product
Import package
Method : POST
Path : import/package
Import client
Method : POST
Path : import/client
Import schedules
Method : POST
Path : import/schedule
Update document status
Method : POST
Path : update/documentStatus

Export clients

Method : GET
Path : export/clients/{lastTimestamp}
Description: Endpoint is used to export your clients from Repsly database. System limit is 50 rows.
Formats: JSON, XML
Response JSON:
{
    "MetaCollectionResult":
    {
        "TotalCount":0,
        "LastTimeStamp":0
    },
    "Clients":
    [
        {
            "ClientID":0,
            "TimeStamp":0,
            "Code":null,
            "Name":null,
            "Active":false,
            "Tag":null,
            "Territory":null,
            "RepresentativeCode":null,
            "RepresentativeName":null,
            "StreetAddress":null,
            "ZIP":null,
            "ZIPExt":null,
            "City":null,
            "State":null,
            "Country":null,
            "Email":null,
            "Phone":null,
            "Mobile":null,
            "Website":null,
            "ContactName":null,
            "ContactTitle":null,
            "Note":null,
            "Status":null,
            "PriceLists":
            [
            ],
            "CustomFields":
            [
                {
                    "Field":null,
                    "Value":null
                },
                {
                    "Field":null,
                    "Value":null
                }
            ]
        },
        {
            "ClientID":0,
            "TimeStamp":0,
            "Code":null,
            "Name":null,
            "Active":false,
            "Tag":null,
            "Territory":null,
            "RepresentativeCode":null,
            "RepresentativeName":null,
            "StreetAddress":null,
            "ZIP":null,
            "ZIPExt":null,
            "City":null,
            "State":null,
            "Country":null,
            "Email":null,
            "Phone":null,
            "Mobile":null,
            "Website":null,
            "ContactName":null,
            "ContactTitle":null,
            "Note":null,
            "Status":null,
            "PriceLists":
            [
            ],
            "CustomFields":
            [
                {
                    "Field":null,
                    "Value":null
                },
                {
                    "Field":null,
                    "Value":null
                }
            ]
        }
    ]
}
Response XML:
<ClientsResult>
  <MetaCollectionResult>
    <TotalCount>0</TotalCount>
    <LastTimeStamp>0</LastTimeStamp>
  </MetaCollectionResult>
  <Clients>
    <Client>
      <ClientID>0</ClientID>
      <TimeStamp>0</TimeStamp>
      <Code  />
      <Name  />
      <Active>false</Active>
      <Tag  />
      <Territory  />
      <RepresentativeCode  />
      <RepresentativeName  />
      <StreetAddress  />
      <ZIP  />
      <ZIPExt  />
      <City  />
      <State  />
      <Country  />
      <Email  />
      <Phone  />
      <Mobile  />
      <Website  />
      <ContactName  />
      <ContactTitle  />
      <Note  />
      <Status  />
      <PriceLists />
      <CustomFields>
        <Item>
          <Field  />
          <Value  />
        </Item>
        <Item>
          <Field  />
          <Value  />
        </Item>
      </CustomFields>
    </Client>
    <Client>
      <ClientID>0</ClientID>
      <TimeStamp>0</TimeStamp>
      <Code  />
      <Name  />
      <Active>false</Active>
      <Tag  />
      <Territory  />
      <RepresentativeCode  />
      <RepresentativeName  />
      <StreetAddress  />
      <ZIP  />
      <ZIPExt  />
      <City  />
      <State  />
      <Country  />
      <Email  />
      <Phone  />
      <Mobile  />
      <Website  />
      <ContactName  />
      <ContactTitle  />
      <Note  />
      <Status  />
      <PriceLists />
      <CustomFields>
        <Item>
          <Field  />
          <Value  />
        </Item>
        <Item>
          <Field  />
          <Value  />
        </Item>
      </CustomFields>
    </Client>
  </Clients>
</ClientsResult>

Export client notes

Method : GET
Path : export/clientnotes/{lastClientNoteID}
Description: Endpoint is used to export your client notes from Repsly database. System limit is 50 rows.
Formats: JSON, XML
Response JSON:
{
    "MetaCollectionResult":
    {
        "TotalCount":0,
        "FirstID":0,
        "LastID":0
    },
    "ClientNotes":
    [
        {
            "ClientNoteID":0,
            "TimeStamp":0,
            "DateAndTime":"\/Date(1606548151752)\/",
            "RepresentativeCode":null,
            "RepresentativeName":null,
            "ClientCode":null,
            "ClientName":null,
            "StreetAddress":null,
            "ZIP":null,
            "ZIPExt":null,
            "City":null,
            "State":null,
            "Country":null,
            "Email":null,
            "Phone":null,
            "Mobile":null,
            "Territory":null,
            "Longitude":null,
            "Latitude":null,
            "Note":null,
            "VisitID":null
        },
        {
            "ClientNoteID":0,
            "TimeStamp":0,
            "DateAndTime":"\/Date(1606548151752)\/",
            "RepresentativeCode":null,
            "RepresentativeName":null,
            "ClientCode":null,
            "ClientName":null,
            "StreetAddress":null,
            "ZIP":null,
            "ZIPExt":null,
            "City":null,
            "State":null,
            "Country":null,
            "Email":null,
            "Phone":null,
            "Mobile":null,
            "Territory":null,
            "Longitude":null,
            "Latitude":null,
            "Note":null,
            "VisitID":null
        }
    ]
}
Response XML:
<ClientNotesResult>
  <MetaCollectionResult>
    <TotalCount>0</TotalCount>
    <FirstID>0</FirstID>
    <LastID>0</LastID>
  </MetaCollectionResult>
  <ClientNotes>
    <ClientNote>
      <ClientNoteID>0</ClientNoteID>
      <TimeStamp>0</TimeStamp>
      <DateAndTime>2020-11-28T07:22:31.7527905Z</DateAndTime>
      <RepresentativeCode  />
      <RepresentativeName  />
      <ClientCode  />
      <ClientName  />
      <StreetAddress  />
      <ZIP  />
      <ZIPExt  />
      <City  />
      <State  />
      <Country  />
      <Email  />
      <Phone  />
      <Mobile  />
      <Territory  />
      <Longitude  />
      <Latitude  />
      <Note  />
      <VisitID  />
    </ClientNote>
    <ClientNote>
      <ClientNoteID>0</ClientNoteID>
      <TimeStamp>0</TimeStamp>
      <DateAndTime>2020-11-28T07:22:31.7527905Z</DateAndTime>
      <RepresentativeCode  />
      <RepresentativeName  />
      <ClientCode  />
      <ClientName  />
      <StreetAddress  />
      <ZIP  />
      <ZIPExt  />
      <City  />
      <State  />
      <Country  />
      <Email  />
      <Phone  />
      <Mobile  />
      <Territory  />
      <Longitude  />
      <Latitude  />
      <Note  />
      <VisitID  />
    </ClientNote>
  </ClientNotes>
</ClientNotesResult>

Export visits

Method : GET
Path : export/visits/{lastTimestamp}
Description: Endpoint is used to export your visits from Repsly database. System limit is 50 rows.
Formats: JSON, XML
Response JSON:
{
    "MetaCollectionResult":
    {
        "TotalCount":0,
        "LastTimeStamp":0
    },
    "Visits":
    [
        {
            "VisitID":0,
            "TimeStamp":0,
            "Date":"\/Date(1606548151752)\/",
            "RepresentativeCode":null,
            "RepresentativeName":null,
            "ExplicitCheckIn":null,
            "DateAndTimeStart":"\/Date(1606548151752)\/",
            "DateAndTimeEnd":"\/Date(1606555351752)\/",
            "ClientCode":null,
            "ClientName":null,
            "StreetAddress":null,
            "ZIP":null,
            "ZIPExt":null,
            "City":null,
            "State":null,
            "Country":null,
            "Territory":null,
            "LatitudeStart":null,
            "LongitudeStart":null,
            "LatitudeEnd":null,
            "LongitudeEnd":null,
            "PrecisionStart":null,
            "PrecisionEnd":null,
            "VisitStatusBySchedule":null,
            "VisitEnded":false
        },
        {
            "VisitID":0,
            "TimeStamp":0,
            "Date":"\/Date(1606548151752)\/",
            "RepresentativeCode":null,
            "RepresentativeName":null,
            "ExplicitCheckIn":null,
            "DateAndTimeStart":"\/Date(1606548151752)\/",
            "DateAndTimeEnd":"\/Date(1606555351752)\/",
            "ClientCode":null,
            "ClientName":null,
            "StreetAddress":null,
            "ZIP":null,
            "ZIPExt":null,
            "City":null,
            "State":null,
            "Country":null,
            "Territory":null,
            "LatitudeStart":null,
            "LongitudeStart":null,
            "LatitudeEnd":null,
            "LongitudeEnd":null,
            "PrecisionStart":null,
            "PrecisionEnd":null,
            "VisitStatusBySchedule":null,
            "VisitEnded":false
        }
    ]
}
Response XML:
<VisitsResult>
  <MetaCollectionResult>
    <TotalCount>0</TotalCount>
    <LastTimeStamp>0</LastTimeStamp>
  </MetaCollectionResult>
  <Visits>
    <Visit>
      <VisitID>0</VisitID>
      <TimeStamp>0</TimeStamp>
      <Date>2020-11-28T07:22:31.7527905Z</Date>
      <RepresentativeCode  />
      <RepresentativeName  />
      <ExplicitCheckIn  />
      <DateAndTimeStart>2020-11-28T07:22:31.7527905Z</DateAndTimeStart>
      <DateAndTimeEnd>2020-11-28T09:22:31.7527905Z</DateAndTimeEnd>
      <ClientCode  />
      <ClientName  />
      <StreetAddress  />
      <ZIP  />
      <ZIPExt  />
      <City  />
      <State  />
      <Country  />
      <Territory  />
      <LatitudeStart  />
      <LongitudeStart  />
      <LatitudeEnd  />
      <LongitudeEnd  />
      <PrecisionStart  />
      <PrecisionEnd  />
      <VisitStatusBySchedule  />
      <VisitEnded>false</VisitEnded>
    </Visit>
    <Visit>
      <VisitID>0</VisitID>
      <TimeStamp>0</TimeStamp>
      <Date>2020-11-28T07:22:31.7527905Z</Date>
      <RepresentativeCode  />
      <RepresentativeName  />
      <ExplicitCheckIn  />
      <DateAndTimeStart>2020-11-28T07:22:31.7527905Z</DateAndTimeStart>
      <DateAndTimeEnd>2020-11-28T09:22:31.7527905Z</DateAndTimeEnd>
      <ClientCode  />
      <ClientName  />
      <StreetAddress  />
      <ZIP  />
      <ZIPExt  />
      <City  />
      <State  />
      <Country  />
      <Territory  />
      <LatitudeStart  />
      <LongitudeStart  />
      <LatitudeEnd  />
      <LongitudeEnd  />
      <PrecisionStart  />
      <PrecisionEnd  />
      <VisitStatusBySchedule  />
      <VisitEnded>false</VisitEnded>
    </Visit>
  </Visits>
</VisitsResult>

Export retail audits

Method : GET
Path : export/retailaudits/{lastRetailAuditID}
Description: Endpoint is used to export your retail audits from Repsly database. System limit is 50 rows.
Formats: JSON, XML
Response JSON:
{
    "MetaCollectionResult":
    {
        "TotalCount":0,
        "FirstID":0,
        "LastID":0
    },
    "RetailAudits":
    [
        {
            "RetailAuditID":0,
            "RetailAuditName":null,
            "Cancelled":false,
            "ClientCode":null,
            "ClientName":null,
            "DateAndTime":"\/Date(1606548151752)\/",
            "RepresentativeCode":null,
            "RepresentativeName":null,
            "Items":
            [
                {
                    "ProductGroupCode":null,
                    "ProductGroupName":null,
                    "ProductCode":null,
                    "ProductName":null,
                    "Present":null,
                    "Price":null,
                    "Promotion":null,
                    "ShelfShare":null,
                    "ShelfSharePercent":null,
                    "SoldOut":null,
                    "Stock":null,
                    "CustomFields":
                    [
                        {
                            "Field":null,
                            "Value":null
                        },
                        {
                            "Field":null,
                            "Value":null
                        }
                    ]
                },
                {
                    "ProductGroupCode":null,
                    "ProductGroupName":null,
                    "ProductCode":null,
                    "ProductName":null,
                    "Present":null,
                    "Price":null,
                    "Promotion":null,
                    "ShelfShare":null,
                    "ShelfSharePercent":null,
                    "SoldOut":null,
                    "Stock":null,
                    "CustomFields":
                    [
                        {
                            "Field":null,
                            "Value":null
                        },
                        {
                            "Field":null,
                            "Value":null
                        }
                    ]
                }
            ],
            "Note":null,
            "VisitID":null
        },
        {
            "RetailAuditID":0,
            "RetailAuditName":null,
            "Cancelled":false,
            "ClientCode":null,
            "ClientName":null,
            "DateAndTime":"\/Date(1606548151752)\/",
            "RepresentativeCode":null,
            "RepresentativeName":null,
            "Items":
            [
                {
                    "ProductGroupCode":null,
                    "ProductGroupName":null,
                    "ProductCode":null,
                    "ProductName":null,
                    "Present":null,
                    "Price":null,
                    "Promotion":null,
                    "ShelfShare":null,
                    "ShelfSharePercent":null,
                    "SoldOut":null,
                    "Stock":null,
                    "CustomFields":
                    [
                        {
                            "Field":null,
                            "Value":null
                        },
                        {
                            "Field":null,
                            "Value":null
                        }
                    ]
                },
                {
                    "ProductGroupCode":null,
                    "ProductGroupName":null,
                    "ProductCode":null,
                    "ProductName":null,
                    "Present":null,
                    "Price":null,
                    "Promotion":null,
                    "ShelfShare":null,
                    "ShelfSharePercent":null,
                    "SoldOut":null,
                    "Stock":null,
                    "CustomFields":
                    [
                        {
                            "Field":null,
                            "Value":null
                        },
                        {
                            "Field":null,
                            "Value":null
                        }
                    ]
                }
            ],
            "Note":null,
            "VisitID":null
        }
    ]
}
Response XML:
<RetailAuditResult>
  <MetaCollectionResult>
    <TotalCount>0</TotalCount>
    <FirstID>0</FirstID>
    <LastID>0</LastID>
  </MetaCollectionResult>
  <RetailAudits>
    <RetailAudit>
      <RetailAuditID>0</RetailAuditID>
      <RetailAuditName  />
      <Cancelled>false</Cancelled>
      <ClientCode  />
      <ClientName  />
      <DateAndTime>2020-11-28T07:22:31.7527905Z</DateAndTime>
      <RepresentativeCode  />
      <RepresentativeName  />
      <Items>
        <Item>
          <ProductGroupCode  />
          <ProductGroupName  />
          <ProductCode  />
          <ProductName  />
          <Present  />
          <Price  />
          <Promotion  />
          <ShelfShare  />
          <ShelfSharePercent  />
          <SoldOut  />
          <Stock  />
          <CustomFields>
            <ExtraInfoItem>
              <Field  />
              <Value  />
            </ExtraInfoItem>
            <ExtraInfoItem>
              <Field  />
              <Value  />
            </ExtraInfoItem>
          </CustomFields>
        </Item>
        <Item>
          <ProductGroupCode  />
          <ProductGroupName  />
          <ProductCode  />
          <ProductName  />
          <Present  />
          <Price  />
          <Promotion  />
          <ShelfShare  />
          <ShelfSharePercent  />
          <SoldOut  />
          <Stock  />
          <CustomFields>
            <ExtraInfoItem>
              <Field  />
              <Value  />
            </ExtraInfoItem>
            <ExtraInfoItem>
              <Field  />
              <Value  />
            </ExtraInfoItem>
          </CustomFields>
        </Item>
      </Items>
      <Note  />
      <VisitID  />
    </RetailAudit>
    <RetailAudit>
      <RetailAuditID>0</RetailAuditID>
      <RetailAuditName  />
      <Cancelled>false</Cancelled>
      <ClientCode  />
      <ClientName  />
      <DateAndTime>2020-11-28T07:22:31.7527905Z</DateAndTime>
      <RepresentativeCode  />
      <RepresentativeName  />
      <Items>
        <Item>
          <ProductGroupCode  />
          <ProductGroupName  />
          <ProductCode  />
          <ProductName  />
          <Present  />
          <Price  />
          <Promotion  />
          <ShelfShare  />
          <ShelfSharePercent  />
          <SoldOut  />
          <Stock  />
          <CustomFields>
            <ExtraInfoItem>
              <Field  />
              <Value  />
            </ExtraInfoItem>
            <ExtraInfoItem>
              <Field  />
              <Value  />
            </ExtraInfoItem>
          </CustomFields>
        </Item>
        <Item>
          <ProductGroupCode  />
          <ProductGroupName  />
          <ProductCode  />
          <ProductName  />
          <Present  />
          <Price  />
          <Promotion  />
          <ShelfShare  />
          <ShelfSharePercent  />
          <SoldOut  />
          <Stock  />
          <CustomFields>
            <ExtraInfoItem>
              <Field  />
              <Value  />
            </ExtraInfoItem>
            <ExtraInfoItem>
              <Field  />
              <Value  />
            </ExtraInfoItem>
          </CustomFields>
        </Item>
      </Items>
      <Note  />
      <VisitID  />
    </RetailAudit>
  </RetailAudits>
</RetailAuditResult>

Export purchase orders

Method : GET
Path : export/purchaseorders/{lastDocumentID}
Description: Endpoint is used to export your purchase orders from Repsly database. System limit is 50 rows.
Formats: JSON, XML
Response JSON:
{
    "MetaCollectionResult":
    {
        "TotalCount":0,
        "FirstID":0,
        "LastID":0
    },
    "PurchaseOrders":
    [
        {
            "PurchaseOrderID":0,
            "TransactionType":null,
            "DateAndTime":"\/Date(1606548151752)\/",
            "DocumentNo":null,
            "OrderNumber":null,
            "ClientCode":null,
            "ClientName":null,
            "DocumentDate":"\/Date(1606548151752)\/",
            "DueDate":"\/Date(1606548151752)\/",
            "RepresentativeCode":null,
            "RepresentativeName":null,
            "Items":
            [
                {
                    "LineNo":0,
                    "ProductCode":null,
                    "ProductName":null,
                    "UnitAmount":0,
                    "UnitPrice":0,
                    "PackageTypeCode":null,
                    "PackageTypeName":null,
                    "PackageTypeConversion":null,
                    "Quantity":0,
                    "Amount":0,
                    "DiscountAmount":0,
                    "DiscountPercent":0,
                    "TaxAmount":0,
                    "TaxPercent":0,
                    "TotalAmount":0,
                    "Note":null,
                    "DocumentItemAttributeID":null,
                    "DocumentItemAttributeName":null
                },
                {
                    "LineNo":0,
                    "ProductCode":null,
                    "ProductName":null,
                    "UnitAmount":0,
                    "UnitPrice":0,
                    "PackageTypeCode":null,
                    "PackageTypeName":null,
                    "PackageTypeConversion":null,
                    "Quantity":0,
                    "Amount":0,
                    "DiscountAmount":0,
                    "DiscountPercent":0,
                    "TaxAmount":0,
                    "TaxPercent":0,
                    "TotalAmount":0,
                    "Note":null,
                    "DocumentItemAttributeID":null,
                    "DocumentItemAttributeName":null
                }
            ],
            "SignatureURL":null,
            "Note":null,
            "Taxable":false,
            "VisitID":null,
            "DocumentTypeID":null,
            "DocumentTypeName":null,
            "DocumentStatusID":null,
            "DocumentStatusName":null,
            "DocumentItemAttributeCaption":null,
            "DocumentCustomAttributes":
            [
                {
                    "CustomAttributeInfoID":"00000000-0000-0000-0000-000000000000",
                    "Title":null,
                    "Type":null,
                    "Value":null
                },
                {
                    "CustomAttributeInfoID":"00000000-0000-0000-0000-000000000000",
                    "Title":null,
                    "Type":null,
                    "Value":null
                }
            ],
            "StreetAddress":null,
            "ZIP":null,
            "ZIPExt":null,
            "City":null,
            "State":null,
            "Country":null,
            "CountryCode":null
        },
        {
            "PurchaseOrderID":0,
            "TransactionType":null,
            "DateAndTime":"\/Date(1606548151752)\/",
            "DocumentNo":null,
            "OrderNumber":null,
            "ClientCode":null,
            "ClientName":null,
            "DocumentDate":"\/Date(1606548151752)\/",
            "DueDate":"\/Date(1606548151752)\/",
            "RepresentativeCode":null,
            "RepresentativeName":null,
            "Items":
            [
                {
                    "LineNo":0,
                    "ProductCode":null,
                    "ProductName":null,
                    "UnitAmount":0,
                    "UnitPrice":0,
                    "PackageTypeCode":null,
                    "PackageTypeName":null,
                    "PackageTypeConversion":null,
                    "Quantity":0,
                    "Amount":0,
                    "DiscountAmount":0,
                    "DiscountPercent":0,
                    "TaxAmount":0,
                    "TaxPercent":0,
                    "TotalAmount":0,
                    "Note":null,
                    "DocumentItemAttributeID":null,
                    "DocumentItemAttributeName":null
                },
                {
                    "LineNo":0,
                    "ProductCode":null,
                    "ProductName":null,
                    "UnitAmount":0,
                    "UnitPrice":0,
                    "PackageTypeCode":null,
                    "PackageTypeName":null,
                    "PackageTypeConversion":null,
                    "Quantity":0,
                    "Amount":0,
                    "DiscountAmount":0,
                    "DiscountPercent":0,
                    "TaxAmount":0,
                    "TaxPercent":0,
                    "TotalAmount":0,
                    "Note":null,
                    "DocumentItemAttributeID":null,
                    "DocumentItemAttributeName":null
                }
            ],
            "SignatureURL":null,
            "Note":null,
            "Taxable":false,
            "VisitID":null,
            "DocumentTypeID":null,
            "DocumentTypeName":null,
            "DocumentStatusID":null,
            "DocumentStatusName":null,
            "DocumentItemAttributeCaption":null,
            "DocumentCustomAttributes":
            [
                {
                    "CustomAttributeInfoID":"00000000-0000-0000-0000-000000000000",
                    "Title":null,
                    "Type":null,
                    "Value":null
                },
                {
                    "CustomAttributeInfoID":"00000000-0000-0000-0000-000000000000",
                    "Title":null,
                    "Type":null,
                    "Value":null
                }
            ],
            "StreetAddress":null,
            "ZIP":null,
            "ZIPExt":null,
            "City":null,
            "State":null,
            "Country":null,
            "CountryCode":null
        }
    ]
}
Response XML:
<PurchaseOrdersResult>
  <MetaCollectionResult>
    <TotalCount>0</TotalCount>
    <FirstID>0</FirstID>
    <LastID>0</LastID>
  </MetaCollectionResult>
  <PurchaseOrders>
    <PurchaseOrder>
      <PurchaseOrderID>0</PurchaseOrderID>
      <TransactionType  />
      <DateAndTime>2020-11-28T07:22:31.7527905Z</DateAndTime>
      <DocumentNo  />
      <OrderNumber  />
      <ClientCode  />
      <ClientName  />
      <DocumentDate>2020-11-28T07:22:31.7527905Z</DocumentDate>
      <DueDate>2020-11-28T07:22:31.7527905Z</DueDate>
      <RepresentativeCode  />
      <RepresentativeName  />
      <Items>
        <Item>
          <LineNo>0</LineNo>
          <ProductCode  />
          <ProductName  />
          <UnitAmount>0</UnitAmount>
          <UnitPrice>0</UnitPrice>
          <PackageTypeCode  />
          <PackageTypeName  />
          <PackageTypeConversion  />
          <Quantity>0</Quantity>
          <Amount>0</Amount>
          <DiscountAmount>0</DiscountAmount>
          <DiscountPercent>0</DiscountPercent>
          <TaxAmount>0</TaxAmount>
          <TaxPercent>0</TaxPercent>
          <TotalAmount>0</TotalAmount>
          <Note  />
          <DocumentItemAttributeID  />
          <DocumentItemAttributeName  />
        </Item>
        <Item>
          <LineNo>0</LineNo>
          <ProductCode  />
          <ProductName  />
          <UnitAmount>0</UnitAmount>
          <UnitPrice>0</UnitPrice>
          <PackageTypeCode  />
          <PackageTypeName  />
          <PackageTypeConversion  />
          <Quantity>0</Quantity>
          <Amount>0</Amount>
          <DiscountAmount>0</DiscountAmount>
          <DiscountPercent>0</DiscountPercent>
          <TaxAmount>0</TaxAmount>
          <TaxPercent>0</TaxPercent>
          <TotalAmount>0</TotalAmount>
          <Note  />
          <DocumentItemAttributeID  />
          <DocumentItemAttributeName  />
        </Item>
      </Items>
      <SignatureURL  />
      <Note  />
      <Taxable>false</Taxable>
      <VisitID  />
      <DocumentTypeID  />
      <DocumentTypeName  />
      <DocumentStatusID  />
      <DocumentStatusName  />
      <DocumentItemAttributeCaption  />
      <DocumentCustomAttributes>
        <CustomAttribute>
          <CustomAttributeInfoID>00000000-0000-0000-0000-000000000000</CustomAttributeInfoID>
          <Title  />
          <Type  />
          <Value  />
        </CustomAttribute>
        <CustomAttribute>
          <CustomAttributeInfoID>00000000-0000-0000-0000-000000000000</CustomAttributeInfoID>
          <Title  />
          <Type  />
          <Value  />
        </CustomAttribute>
      </DocumentCustomAttributes>
      <StreetAddress  />
      <ZIP  />
      <ZIPExt  />
      <City  />
      <State  />
      <Country  />
      <CountryCode  />
    </PurchaseOrder>
    <PurchaseOrder>
      <PurchaseOrderID>0</PurchaseOrderID>
      <TransactionType  />
      <DateAndTime>2020-11-28T07:22:31.7527905Z</DateAndTime>
      <DocumentNo  />
      <OrderNumber  />
      <ClientCode  />
      <ClientName  />
      <DocumentDate>2020-11-28T07:22:31.7527905Z</DocumentDate>
      <DueDate>2020-11-28T07:22:31.7527905Z</DueDate>
      <RepresentativeCode  />
      <RepresentativeName  />
      <Items>
        <Item>
          <LineNo>0</LineNo>
          <ProductCode  />
          <ProductName  />
          <UnitAmount>0</UnitAmount>
          <UnitPrice>0</UnitPrice>
          <PackageTypeCode  />
          <PackageTypeName  />
          <PackageTypeConversion  />
          <Quantity>0</Quantity>
          <Amount>0</Amount>
          <DiscountAmount>0</DiscountAmount>
          <DiscountPercent>0</DiscountPercent>
          <TaxAmount>0</TaxAmount>
          <TaxPercent>0</TaxPercent>
          <TotalAmount>0</TotalAmount>
          <Note  />
          <DocumentItemAttributeID  />
          <DocumentItemAttributeName  />
        </Item>
        <Item>
          <LineNo>0</LineNo>
          <ProductCode  />
          <ProductName  />
          <UnitAmount>0</UnitAmount>
          <UnitPrice>0</UnitPrice>
          <PackageTypeCode  />
          <PackageTypeName  />
          <PackageTypeConversion  />
          <Quantity>0</Quantity>
          <Amount>0</Amount>
          <DiscountAmount>0</DiscountAmount>
          <DiscountPercent>0</DiscountPercent>
          <TaxAmount>0</TaxAmount>
          <TaxPercent>0</TaxPercent>
          <TotalAmount>0</TotalAmount>
          <Note  />
          <DocumentItemAttributeID  />
          <DocumentItemAttributeName  />
        </Item>
      </Items>
      <SignatureURL  />
      <Note  />
      <Taxable>false</Taxable>
      <VisitID  />
      <DocumentTypeID  />
      <DocumentTypeName  />
      <DocumentStatusID  />
      <DocumentStatusName  />
      <DocumentItemAttributeCaption  />
      <DocumentCustomAttributes>
        <CustomAttribute>
          <CustomAttributeInfoID>00000000-0000-0000-0000-000000000000</CustomAttributeInfoID>
          <Title  />
          <Type  />
          <Value  />
        </CustomAttribute>
        <CustomAttribute>
          <CustomAttributeInfoID>00000000-0000-0000-0000-000000000000</CustomAttributeInfoID>
          <Title  />
          <Type  />
          <Value  />
        </CustomAttribute>
      </DocumentCustomAttributes>
      <StreetAddress  />
      <ZIP  />
      <ZIPExt  />
      <City  />
      <State  />
      <Country  />
      <CountryCode  />
    </PurchaseOrder>
  </PurchaseOrders>
</PurchaseOrdersResult>

Export forms

Method : GET
Path : export/forms/{lastFormID}
Description: Endpoint is used to export your forms from Repsly database. System limit is 50 rows.
Formats: JSON, XML
Response JSON:
{
    "MetaCollectionResult":
    {
        "TotalCount":0,
        "FirstID":0,
        "LastID":0
    },
    "Forms":
    [
        {
            "FormID":0,
            "FormName":null,
            "ClientCode":null,
            "ClientName":null,
            "DateAndTime":"\/Date(1606548151752+0100)\/",
            "RepresentativeCode":null,
            "RepresentativeName":null,
            "StreetAddress":null,
            "ZIP":null,
            "ZIPExt":null,
            "City":null,
            "State":null,
            "Country":null,
            "Email":null,
            "Phone":null,
            "Mobile":null,
            "Territory":null,
            "Longitude":null,
            "Latitude":null,
            "SignatureURL":null,
            "VisitStart":null,
            "VisitEnd":null,
            "Items":
            [
                {
                    "Field":null,
                    "Value":null
                },
                {
                    "Field":null,
                    "Value":null
                }
            ],
            "VisitID":null
        },
        {
            "FormID":0,
            "FormName":null,
            "ClientCode":null,
            "ClientName":null,
            "DateAndTime":"\/Date(1606548151752+0100)\/",
            "RepresentativeCode":null,
            "RepresentativeName":null,
            "StreetAddress":null,
            "ZIP":null,
            "ZIPExt":null,
            "City":null,
            "State":null,
            "Country":null,
            "Email":null,
            "Phone":null,
            "Mobile":null,
            "Territory":null,
            "Longitude":null,
            "Latitude":null,
            "SignatureURL":null,
            "VisitStart":null,
            "VisitEnd":null,
            "Items":
            [
                {
                    "Field":null,
                    "Value":null
                },
                {
                    "Field":null,
                    "Value":null
                }
            ],
            "VisitID":null
        }
    ]
}
Response XML:
<FormsResult>
  <MetaCollectionResult>
    <TotalCount>0</TotalCount>
    <FirstID>0</FirstID>
    <LastID>0</LastID>
  </MetaCollectionResult>
  <Forms>
    <Form>
      <FormID>0</FormID>
      <FormName  />
      <ClientCode  />
      <ClientName  />
      <DateAndTime>2020-11-28T08:22:31.7527905+01:00</DateAndTime>
      <RepresentativeCode  />
      <RepresentativeName  />
      <StreetAddress  />
      <ZIP  />
      <ZIPExt  />
      <City  />
      <State  />
      <Country  />
      <Email  />
      <Phone  />
      <Mobile  />
      <Territory  />
      <Longitude  />
      <Latitude  />
      <SignatureURL  />
      <VisitStart  />
      <VisitEnd  />
      <Items>
        <Item>
          <Field  />
          <Value  />
        </Item>
        <Item>
          <Field  />
          <Value  />
        </Item>
      </Items>
      <VisitID  />
    </Form>
    <Form>
      <FormID>0</FormID>
      <FormName  />
      <ClientCode  />
      <ClientName  />
      <DateAndTime>2020-11-28T08:22:31.7527905+01:00</DateAndTime>
      <RepresentativeCode  />
      <RepresentativeName  />
      <StreetAddress  />
      <ZIP  />
      <ZIPExt  />
      <City  />
      <State  />
      <Country  />
      <Email  />
      <Phone  />
      <Mobile  />
      <Territory  />
      <Longitude  />
      <Latitude  />
      <SignatureURL  />
      <VisitStart  />
      <VisitEnd  />
      <Items>
        <Item>
          <Field  />
          <Value  />
        </Item>
        <Item>
          <Field  />
          <Value  />
        </Item>
      </Items>
      <VisitID  />
    </Form>
  </Forms>
</FormsResult>

Export photos

Method : GET
Path : export/photos/{lastPhotoID}
Description: Endpoint is used to export your photos from Repsly database. System limit is 50 rows.
Formats: JSON, XML
Response JSON:
{
    "MetaCollectionResult":
    {
        "TotalCount":0,
        "FirstID":0,
        "LastID":0
    },
    "Photos":
    [
        {
            "PhotoID":0,
            "ClientCode":null,
            "ClientName":null,
            "Note":null,
            "DateAndTime":"\/Date(1606548151752)\/",
            "PhotoURL":null,
            "RepresentativeCode":null,
            "RepresentativeName":null,
            "VisitID":null,
            "Tag":null
        },
        {
            "PhotoID":0,
            "ClientCode":null,
            "ClientName":null,
            "Note":null,
            "DateAndTime":"\/Date(1606548151752)\/",
            "PhotoURL":null,
            "RepresentativeCode":null,
            "RepresentativeName":null,
            "VisitID":null,
            "Tag":null
        }
    ]
}
Response XML:
<PhotosResult>
  <MetaCollectionResult>
    <TotalCount>0</TotalCount>
    <FirstID>0</FirstID>
    <LastID>0</LastID>
  </MetaCollectionResult>
  <Photos>
    <Photo>
      <PhotoID>0</PhotoID>
      <ClientCode  />
      <ClientName  />
      <Note  />
      <DateAndTime>2020-11-28T07:22:31.7527905Z</DateAndTime>
      <PhotoURL  />
      <RepresentativeCode  />
      <RepresentativeName  />
      <VisitID  />
      <Tag  />
    </Photo>
    <Photo>
      <PhotoID>0</PhotoID>
      <ClientCode  />
      <ClientName  />
      <Note  />
      <DateAndTime>2020-11-28T07:22:31.7527905Z</DateAndTime>
      <PhotoURL  />
      <RepresentativeCode  />
      <RepresentativeName  />
      <VisitID  />
      <Tag  />
    </Photo>
  </Photos>
</PhotosResult>

Export daily working time

Method : GET
Path : export/dailyworkingtime/{lastDailyWorkingTimeID}
Description: Endpoint is used to export daily working time from Repsly database. System limit is 50 rows.
Formats: JSON, XML
Response JSON:
{
    "MetaCollectionResult":
    {
        "TotalCount":0,
        "FirstID":0,
        "LastID":0
    },
    "DailyWorkingTime":
    [
        {
            "DailyWorkingTimeID":0,
            "Date":"\/Date(1606521600000)\/",
            "DateAndTimeStart":"\/Date(1606548151752)\/",
            "DateAndTimeEnd":"\/Date(1606548151752)\/",
            "Length":0,
            "MileageStart":null,
            "MileageEnd":null,
            "MileageTotal":0,
            "LatitudeStart":null,
            "LongitudeStart":null,
            "LatitudeEnd":null,
            "LongitudeEnd":null,
            "RepresentativeCode":null,
            "RepresentativeName":null,
            "Note":null,
            "Tag":null,
            "NoOfVisits":null,
            "MinOfVisits":null,
            "MaxOfVisits":null,
            "MinMaxVisitsTime":null,
            "TimeAtClient":null,
            "TimeInTravel":null,
            "TimeInPause":null
        },
        {
            "DailyWorkingTimeID":0,
            "Date":"\/Date(1606521600000)\/",
            "DateAndTimeStart":"\/Date(1606548151752)\/",
            "DateAndTimeEnd":"\/Date(1606548151752)\/",
            "Length":0,
            "MileageStart":null,
            "MileageEnd":null,
            "MileageTotal":0,
            "LatitudeStart":null,
            "LongitudeStart":null,
            "LatitudeEnd":null,
            "LongitudeEnd":null,
            "RepresentativeCode":null,
            "RepresentativeName":null,
            "Note":null,
            "Tag":null,
            "NoOfVisits":null,
            "MinOfVisits":null,
            "MaxOfVisits":null,
            "MinMaxVisitsTime":null,
            "TimeAtClient":null,
            "TimeInTravel":null,
            "TimeInPause":null
        }
    ]
}
Response XML:
<DailyWorkingTimeResult>
  <MetaCollectionResult>
    <TotalCount>0</TotalCount>
    <FirstID>0</FirstID>
    <LastID>0</LastID>
  </MetaCollectionResult>
  <DailyWorkingTime>
    <DailyWorkingTime>
      <DailyWorkingTimeID>0</DailyWorkingTimeID>
      <Date>2020-11-28T00:00:00Z</Date>
      <DateAndTimeStart>2020-11-28T07:22:31.7527905Z</DateAndTimeStart>
      <DateAndTimeEnd>2020-11-28T07:22:31.7527905Z</DateAndTimeEnd>
      <Length>0</Length>
      <MileageStart  />
      <MileageEnd  />
      <MileageTotal>0</MileageTotal>
      <LatitudeStart  />
      <LongitudeStart  />
      <LatitudeEnd  />
      <LongitudeEnd  />
      <RepresentativeCode  />
      <RepresentativeName  />
      <Note  />
      <Tag  />
      <NoOfVisits  />
      <MinOfVisits  />
      <MaxOfVisits  />
      <MinMaxVisitsTime  />
      <TimeAtClient  />
      <TimeInTravel  />
      <TimeInPause  />
    </DailyWorkingTime>
    <DailyWorkingTime>
      <DailyWorkingTimeID>0</DailyWorkingTimeID>
      <Date>2020-11-28T00:00:00Z</Date>
      <DateAndTimeStart>2020-11-28T07:22:31.7527905Z</DateAndTimeStart>
      <DateAndTimeEnd>2020-11-28T07:22:31.7527905Z</DateAndTimeEnd>
      <Length>0</Length>
      <MileageStart  />
      <MileageEnd  />
      <MileageTotal>0</MileageTotal>
      <LatitudeStart  />
      <LongitudeStart  />
      <LatitudeEnd  />
      <LongitudeEnd  />
      <RepresentativeCode  />
      <RepresentativeName  />
      <Note  />
      <Tag  />
      <NoOfVisits  />
      <MinOfVisits  />
      <MaxOfVisits  />
      <MinMaxVisitsTime  />
      <TimeAtClient  />
      <TimeInTravel  />
      <TimeInPause  />
    </DailyWorkingTime>
  </DailyWorkingTime>
</DailyWorkingTimeResult>

Export visit schedules

Method : GET
Path : export/visitschedules/{beginDateTime}/{endDateTime}
Description: Endpoint is used to export your visit schedules within the given period from Repsly database.
Formats: JSON, XML
Response JSON:
{
    "MetaCollectionResult":
    {
        "TotalCount":0
    },
    "VisitSchedules":
    [
        {
            "ScheduleDateAndTime":"\/Date(1606548151752)\/",
            "RepresentativeCode":null,
            "RepresentativeName":null,
            "ClientCode":null,
            "ClientName":null,
            "StreetAddress":null,
            "ZIP":null,
            "ZIPExt":null,
            "City":null,
            "State":null,
            "Country":null,
            "DueDate":null
        },
        {
            "ScheduleDateAndTime":"\/Date(1606548151752)\/",
            "RepresentativeCode":null,
            "RepresentativeName":null,
            "ClientCode":null,
            "ClientName":null,
            "StreetAddress":null,
            "ZIP":null,
            "ZIPExt":null,
            "City":null,
            "State":null,
            "Country":null,
            "DueDate":null
        }
    ]
}
Response XML:
<VisitScheduleResult>
  <MetaCollectionResult>
    <TotalCount>0</TotalCount>
  </MetaCollectionResult>
  <VisitSchedules>
    <VisitSchedule>
      <ScheduleDateAndTime>2020-11-28T07:22:31.7527905Z</ScheduleDateAndTime>
      <RepresentativeCode  />
      <RepresentativeName  />
      <ClientCode  />
      <ClientName  />
      <StreetAddress  />
      <ZIP  />
      <ZIPExt  />
      <City  />
      <State  />
      <Country  />
      <DueDate  />
    </VisitSchedule>
    <VisitSchedule>
      <ScheduleDateAndTime>2020-11-28T07:22:31.7527905Z</ScheduleDateAndTime>
      <RepresentativeCode  />
      <RepresentativeName  />
      <ClientCode  />
      <ClientName  />
      <StreetAddress  />
      <ZIP  />
      <ZIPExt  />
      <City  />
      <State  />
      <Country  />
      <DueDate  />
    </VisitSchedule>
  </VisitSchedules>
</VisitScheduleResult>

Export representatives

Method : GET
Path : export/representatives
Description: Endpoint is used to export your representatives from Repsly database.
Formats: JSON, XML
Response JSON:
{
    "Representatives":
    [
        {
            "Code":null,
            "Name":null,
            "Note":null,
            "UserID":null,
            "Password":null,
            "Email":null,
            "Phone":null,
            "Mobile":null,
            "Territories":null,
            "Active":false,
            "Address1":null,
            "Address2":null,
            "City":null,
            "State":null,
            "ZipCode":null,
            "ZipCodeExt":null,
            "Country":null,
            "CountryCode":null
        },
        {
            "Code":null,
            "Name":null,
            "Note":null,
            "UserID":null,
            "Password":null,
            "Email":null,
            "Phone":null,
            "Mobile":null,
            "Territories":null,
            "Active":false,
            "Address1":null,
            "Address2":null,
            "City":null,
            "State":null,
            "ZipCode":null,
            "ZipCodeExt":null,
            "Country":null,
            "CountryCode":null
        }
    ]
}
Response XML:
<RepresentativesResult>
  <Representatives>
    <Representative>
      <Code  />
      <Name  />
      <Note  />
      <UserID  />
      <Password  />
      <Email  />
      <Phone  />
      <Mobile  />
      <Territories xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"  />
      <Active>false</Active>
      <Address1  />
      <Address2  />
      <City  />
      <State  />
      <ZipCode  />
      <ZipCodeExt  />
      <Country  />
      <CountryCode  />
    </Representative>
    <Representative>
      <Code  />
      <Name  />
      <Note  />
      <UserID  />
      <Password  />
      <Email  />
      <Phone  />
      <Mobile  />
      <Territories xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"  />
      <Active>false</Active>
      <Address1  />
      <Address2  />
      <City  />
      <State  />
      <ZipCode  />
      <ZipCodeExt  />
      <Country  />
      <CountryCode  />
    </Representative>
  </Representatives>
</RepresentativesResult>

Export pricelists basic data

Method : GET
Path : export/pricelists
Description: Endpoint is used to export your pricelists from Repsly database.
Formats: JSON, XML
Response JSON:
{
    "Pricelists":
    [
        {
            "ID":0,
            "Name":null,
            "IsDefault":false,
            "Active":false,
            "UsePrices":false
        },
        {
            "ID":0,
            "Name":null,
            "IsDefault":false,
            "Active":false,
            "UsePrices":false
        }
    ]
}
Response XML:
<PricelistResults>
  <Pricelists>
    <Pricelist>
      <ID>0</ID>
      <Name  />
      <IsDefault>false</IsDefault>
      <Active>false</Active>
      <UsePrices>false</UsePrices>
    </Pricelist>
    <Pricelist>
      <ID>0</ID>
      <Name  />
      <IsDefault>false</IsDefault>
      <Active>false</Active>
      <UsePrices>false</UsePrices>
    </Pricelist>
  </Pricelists>
</PricelistResults>

Export pricelist items

Method : GET
Path : export/pricelistsItems/{pricelistID}
Description: Endpoint is used to export items for a given pricelist from Repsly database.
Formats: JSON, XML
Response JSON:
{
    "PricelistItems":
    [
        {
            "ID":0,
            "ProductID":0,
            "ProductCode":null,
            "Price":0,
            "Active":false,
            "ClientID":null,
            "ManufactureID":null,
            "DateAvailableFrom":null,
            "DateAvailableTo":null
        },
        {
            "ID":0,
            "ProductID":0,
            "ProductCode":null,
            "Price":0,
            "Active":false,
            "ClientID":null,
            "ManufactureID":null,
            "DateAvailableFrom":null,
            "DateAvailableTo":null
        }
    ]
}
Response XML:
<PricelistItemResults>
  <PricelistItems>
    <PricelistItem>
      <ID>0</ID>
      <ProductID>0</ProductID>
      <ProductCode  />
      <Price>0</Price>
      <Active>false</Active>
      <ClientID  />
      <ManufactureID  />
      <DateAvailableFrom  />
      <DateAvailableTo  />
    </PricelistItem>
    <PricelistItem>
      <ID>0</ID>
      <ProductID>0</ProductID>
      <ProductCode  />
      <Price>0</Price>
      <Active>false</Active>
      <ClientID  />
      <ManufactureID  />
      <DateAvailableFrom  />
      <DateAvailableTo  />
    </PricelistItem>
  </PricelistItems>
</PricelistItemResults>

Export products

Method : GET
Path : export/products/{lastProductID}
Description: Endpoint is used to export products from Repsly database.
Formats: JSON, XML
Response JSON:
{
    "MetaCollectionResult":
    {
        "TotalCount":0,
        "FirstID":0,
        "LastID":0
    },
    "Products":
    [
        {
            "Code":null,
            "Name":null,
            "ProductGroupCode":null,
            "ProductGroupName":null,
            "Active":null,
            "Tag":null,
            "UnitPrice":null,
            "EAN":null,
            "Note":null,
            "ImageUrl":null,
            "MasterProduct":null,
            "Packaging":
            {
                "Codes":
                [
                    {
                        "Value":null
                    },
                    {
                        "Value":null
                    }
                ],
                "IsSet":false
            }
        },
        {
            "Code":null,
            "Name":null,
            "ProductGroupCode":null,
            "ProductGroupName":null,
            "Active":null,
            "Tag":null,
            "UnitPrice":null,
            "EAN":null,
            "Note":null,
            "ImageUrl":null,
            "MasterProduct":null,
            "Packaging":
            {
                "Codes":
                [
                    {
                        "Value":null
                    },
                    {
                        "Value":null
                    }
                ],
                "IsSet":false
            }
        },
        {
            "Code":null,
            "Name":null,
            "ProductGroupCode":null,
            "ProductGroupName":null,
            "Active":null,
            "Tag":null,
            "UnitPrice":null,
            "EAN":null,
            "Note":null,
            "ImageUrl":null,
            "MasterProduct":null,
            "Packaging":
            {
                "Codes":
                [
                    {
                        "Value":null
                    },
                    {
                        "Value":null
                    }
                ],
                "IsSet":false
            }
        },
        {
            "Code":null,
            "Name":null,
            "ProductGroupCode":null,
            "ProductGroupName":null,
            "Active":null,
            "Tag":null,
            "UnitPrice":null,
            "EAN":null,
            "Note":null,
            "ImageUrl":null,
            "MasterProduct":null,
            "Packaging":
            {
                "Codes":
                [
                    {
                        "Value":null
                    },
                    {
                        "Value":null
                    }
                ],
                "IsSet":false
            }
        }
    ]
}
Response XML:
<ProductsResult>
  <MetaCollectionResult>
    <TotalCount>0</TotalCount>
    <FirstID>0</FirstID>
    <LastID>0</LastID>
  </MetaCollectionResult>
  <Products>
    <Product>
      <Code  />
      <Name  />
      <ProductGroupCode  />
      <ProductGroupName  />
      <Active  />
      <Tag  />
      <UnitPrice  />
      <EAN  />
      <Note  />
      <ImageUrl  />
      <MasterProduct  />
      <Packaging>
        <Codes>
          <Code>
            <Value  />
          </Code>
          <Code>
            <Value  />
          </Code>
        </Codes>
        <IsSet>false</IsSet>
      </Packaging>
    </Product>
    <Product>
      <Code  />
      <Name  />
      <ProductGroupCode  />
      <ProductGroupName  />
      <Active  />
      <Tag  />
      <UnitPrice  />
      <EAN  />
      <Note  />
      <ImageUrl  />
      <MasterProduct  />
      <Packaging>
        <Codes>
          <Code>
            <Value  />
          </Code>
          <Code>
            <Value  />
          </Code>
        </Codes>
        <IsSet>false</IsSet>
      </Packaging>
    </Product>
    <Product>
      <Code  />
      <Name  />
      <ProductGroupCode  />
      <ProductGroupName  />
      <Active  />
      <Tag  />
      <UnitPrice  />
      <EAN  />
      <Note  />
      <ImageUrl  />
      <MasterProduct  />
      <Packaging>
        <Codes>
          <Code>
            <Value  />
          </Code>
          <Code>
            <Value  />
          </Code>
        </Codes>
        <IsSet>false</IsSet>
      </Packaging>
    </Product>
    <Product>
      <Code  />
      <Name  />
      <ProductGroupCode  />
      <ProductGroupName  />
      <Active  />
      <Tag  />
      <UnitPrice  />
      <EAN  />
      <Note  />
      <ImageUrl  />
      <MasterProduct  />
      <Packaging>
        <Codes>
          <Code>
            <Value  />
          </Code>
          <Code>
            <Value  />
          </Code>
        </Codes>
        <IsSet>false</IsSet>
      </Packaging>
    </Product>
  </Products>
</ProductsResult>

Export document types basic data

Method : GET
Path : export/documentTypes
Description: Endpoint is used to export your document types from Repsly database.
Formats: JSON, XML
Response JSON:
{
    "DocumentTypes":
    [
        {
            "DocumentTypeID":0,
            "DocumentTypeName":null,
            "Statuses":
            [
                {
                    "DocumentStatusID":0,
                    "DocumentStatusName":null
                },
                {
                    "DocumentStatusID":0,
                    "DocumentStatusName":null
                }
            ],
            "Pricelists":
            [
                {
                    "PricelistID":0,
                    "PricelistName":null
                },
                {
                    "PricelistID":0,
                    "PricelistName":null
                }
            ]
        },
        {
            "DocumentTypeID":0,
            "DocumentTypeName":null,
            "Statuses":
            [
                {
                    "DocumentStatusID":0,
                    "DocumentStatusName":null
                },
                {
                    "DocumentStatusID":0,
                    "DocumentStatusName":null
                }
            ],
            "Pricelists":
            [
                {
                    "PricelistID":0,
                    "PricelistName":null
                },
                {
                    "PricelistID":0,
                    "PricelistName":null
                }
            ]
        }
    ]
}
Response XML:
<DocumentTypeResult>
  <DocumentTypes>
    <DocumentType>
      <DocumentTypeID>0</DocumentTypeID>
      <DocumentTypeName  />
      <Statuses>
        <DocumentStatus>
          <DocumentStatusID>0</DocumentStatusID>
          <DocumentStatusName  />
        </DocumentStatus>
        <DocumentStatus>
          <DocumentStatusID>0</DocumentStatusID>
          <DocumentStatusName  />
        </DocumentStatus>
      </Statuses>
      <Pricelists>
        <DocumentTypePricelist>
          <PricelistID>0</PricelistID>
          <PricelistName  />
        </DocumentTypePricelist>
        <DocumentTypePricelist>
          <PricelistID>0</PricelistID>
          <PricelistName  />
        </DocumentTypePricelist>
      </Pricelists>
    </DocumentType>
    <DocumentType>
      <DocumentTypeID>0</DocumentTypeID>
      <DocumentTypeName  />
      <Statuses>
        <DocumentStatus>
          <DocumentStatusID>0</DocumentStatusID>
          <DocumentStatusName  />
        </DocumentStatus>
        <DocumentStatus>
          <DocumentStatusID>0</DocumentStatusID>
          <DocumentStatusName  />
        </DocumentStatus>
      </Statuses>
      <Pricelists>
        <DocumentTypePricelist>
          <PricelistID>0</PricelistID>
          <PricelistName  />
        </DocumentTypePricelist>
        <DocumentTypePricelist>
          <PricelistID>0</PricelistID>
          <PricelistName  />
        </DocumentTypePricelist>
      </Pricelists>
    </DocumentType>
  </DocumentTypes>
</DocumentTypeResult>

Query status of the import job

Method : GET
Path : export/importStatus/{importJobID}
Description: Endpoint is used to fetch status of an import. This is used for checking status for of all import endpoints.
Formats: JSON, XML
Response JSON:
{
    "ImportStatus":null,
    "RowsInserted":0,
    "RowsUpdated":0,
    "RowsInvalid":0,
    "RowsTotal":0,
    "Warnings":
    [
        {
            "ItemID":null,
            "ItemName":null,
            "ItemStatus":null
        }
    ],
    "Errors":
    [
        {
            "ItemID":null,
            "ItemName":null,
            "ItemStatus":null
        }
    ]
}
Response XML:
<ImportJobStatus>
  <ImportStatus  />
  <RowsInserted>0</RowsInserted>
  <RowsUpdated>0</RowsUpdated>
  <RowsInvalid>0</RowsInvalid>
  <RowsTotal>0</RowsTotal>
  <Warnings>
    <ImportJobItemIssue>
      <ItemID  />
      <ItemName  />
      <ItemStatus  />
    </ImportJobItemIssue>
  </Warnings>
  <Errors>
    <ImportJobItemIssue>
      <ItemID  />
      <ItemName  />
      <ItemStatus  />
    </ImportJobItemIssue>
  </Errors>
</ImportJobStatus>

Import pricelist

Method : POST
Path : import/pricelist
Description: Endpoint is used to import existing pricelist items from your system to Repsly database.
Formats: JSON, XML
Date format: "yyyy-MM-dd"
Request JSON:
{
    "PricelistName":null,
    "ProductCode":null,
    "Price":0,
    "Active":false,
    "DateAvailableFrom":null,
    "DateAvailableTo":null,
    "ClientID":null,
    "ManufactureID":null
}
Request XML:
<Pricelist>
  <PricelistName  />
  <ProductCode  />
  <Price>0</Price>
  <Active>false</Active>
  <DateAvailableFrom  />
  <DateAvailableTo  />
  <ClientID  />
  <ManufactureID  />
</Pricelist>
Response JSON:
{
    "Code":0,
    "Message":null
}
Response XML:
<Status>
  <Code>0</Code>
  <Message  />
</Status>

Import product

Method : POST
Path : import/product
Description: Endpoint is used to import existing products from your system to Repsly database.
Formats: JSON, XML
Request JSON:
{
    "Code":null,
    "Name":null,
    "ProductGroupCode":null,
    "ProductGroupName":null,
    "Active":null,
    "Tag":null,
    "UnitPrice":null,
    "EAN":null,
    "Note":null,
    "ImageUrl":null,
    "MasterProduct":null,
    "Packaging":
    {
        "Codes":
        [
            {
                "Value":null
            },
            {
                "Value":null
            }
        ],
        "IsSet":false
    }
}
Request XML:
<Product>
  <Code  />
  <Name  />
  <ProductGroupCode  />
  <ProductGroupName  />
  <Active  />
  <Tag  />
  <UnitPrice  />
  <EAN  />
  <Note  />
  <ImageUrl  />
  <MasterProduct  />
  <Packaging>
    <Codes>
      <Code>
        <Value  />
      </Code>
      <Code>
        <Value  />
      </Code>
    </Codes>
    <IsSet>false</IsSet>
  </Packaging>
</Product>
Response JSON:
{
    "Code":0,
    "Message":null
}
Response XML:
<Status>
  <Code>0</Code>
  <Message  />
</Status>

Import package

Method : POST
Path : import/package
Description: Endpoint is used to import existing packages from your system to Repsly database.
Formats: JSON, XML
Request JSON:
{
    "Code":null,
    "Name":null,
    "Size":0,
    "Active":false
}
Request XML:
<Package>
  <Code  />
  <Name  />
  <Size>0</Size>
  <Active>false</Active>
</Package>
Response JSON:
{
    "Code":0,
    "Message":null
}
Response XML:
<Status>
  <Code>0</Code>
  <Message  />
</Status>

Import client

Method : POST
Path : import/client
Description: Endpoint is used to import existing clients from your system to Repsly database.
Formats: JSON, XML
Request JSON:
{
    "Code":null,
    "Name":null,
    "Active":false,
    "Tag":null,
    "Territory":null,
    "RepresentativeCode":null,
    "RepresentativeName":null,
    "StreetAddress":null,
    "ZIP":null,
    "ZIPExt":null,
    "City":null,
    "State":null,
    "Country":null,
    "Email":null,
    "Phone":null,
    "Mobile":null,
    "Website":null,
    "ContactName":null,
    "ContactTitle":null,
    "Note":null,
    "Status":null,
    "PriceLists":null,
    "CustomFields":
    [
        {
            "Field":null,
            "Value":null
        },
        {
            "Field":null,
            "Value":null
        }
    ]
}
Request XML:
<Client>
  <Code  />
  <Name  />
  <Active>false</Active>
  <Tag  />
  <Territory  />
  <RepresentativeCode  />
  <RepresentativeName  />
  <StreetAddress  />
  <ZIP  />
  <ZIPExt  />
  <City  />
  <State  />
  <Country  />
  <Email  />
  <Phone  />
  <Mobile  />
  <Website  />
  <ContactName  />
  <ContactTitle  />
  <Note  />
  <Status  />
  <PriceLists  />
  <CustomFields>
    <Item>
      <Field  />
      <Value  />
    </Item>
    <Item>
      <Field  />
      <Value  />
    </Item>
  </CustomFields>
</Client>
Response JSON:
{
    "Code":0,
    "Message":null
}
Response XML:
<Status>
  <Code>0</Code>
  <Message  />
</Status>

Import schedules

Method : POST
Path : import/schedule
Description: Endpoint is used to import existing schedules from your system to Repsly database.
Formats: JSON, XML
Date format: "yyyy-MM-dd"
Time format: "HH:mm:ss"
Request JSON:
{
    "PlaceID":null,
    "RepresentativeID":null,
    "DateBegin":null,
    "DateEnd":null,
    "RepeatEveryWeeks":0,
    "VisitTime":null,
    "VisitDuration":null,
    "ScheduleDescription":null,
    "Tasks":
    [
        {
            "TaskType":null,
            "TaskDescription":null
        },
        {
            "TaskType":null,
            "TaskDescription":null
        }
    ]
}
Request XML:
<Schedule>
  <PlaceID  />
  <RepresentativeID  />
  <DateBegin  />
  <DateEnd  />
  <RepeatEveryWeeks>0</RepeatEveryWeeks>
  <VisitTime  />
  <VisitDuration  />
  <ScheduleDescription  />
  <Tasks>
    <Task>
      <TaskType  />
      <TaskDescription  />
    </Task>
    <Task>
      <TaskType  />
      <TaskDescription  />
    </Task>
  </Tasks>
</Schedule>
Response JSON:
{
    "Code":0,
    "Message":null
}
Response XML:
<Status>
  <Code>0</Code>
  <Message  />
</Status>

Update document status

Method : POST
Path : update/documentStatus
Description: Endpoint is used to update the status of an existing document in the Repsly DB
Formats: JSON, XML
Request JSON:
{
    "DocumentID":0,
    "DocumentStatusID":null
}
Request XML:
<RequestUpdateDocumentStatus xmlns="http://schemas.datacontract.org/2004/07/Repsly.API3.Models">
  <DocumentID>0</DocumentID>
  <DocumentStatusID  />
</RequestUpdateDocumentStatus>
Response JSON:
{
    "Code":0,
    "Message":null
}
Response XML:
<Status>
  <Code>0</Code>
  <Message  />
</Status>