Jump to content
  • 0

API - DPAE


gabman66
 Share

Question

2 answers to this question

Recommended Posts

  • 0

Bonjour

Je ne l ai pas fait, mais j imagine que vous utilisez curl pour ca? 

selon la documentation il fault envoyer en xml 

Exemple de requête minimale

POST /deposer-dsn/1.0/ HTTP/1.1 Host: depot.dpae-edi.urssaf.fr Authorization:    Content-Type: text/plain Content-Encoding : gzip Content-Length: 4096 
 
<?xml version="1.0" encoding="ISO-8859-1" ?> <FR_DUE_Upload xmlns:cct="urn:oasis:names:tc:ubl:corecomponentTypes:1.0:0.70" xmlns:rxdt="http://www.repxml.org/DataTypes" xmlns:rxorg="http://www.repxml.org/Organization" xmlns:rxpadr="http://www.repxml.org/PostalAddress" xmlns:rxpers="http://www.repxml.org/Person_Identity" xmlns:rxphadr="http://www.repxml.org/PhoneAddress" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >     <FR_DUE_Upload.Test.Indicator>120</FR_DUE_Upload.Test.Indicator>       <FR_DuesGroup>          <FR_Employer>             <FR_EmployerIdentity>             <rxorg:FR_Organization.SIRET.Identifier>99999999999999</rxorg:FR_Organization.SIRE T.Identifier>                          <rxorg:FR_Organization.APE.Code>8110Z</rxorg:FR_Organization.APE.Code>             </FR_EmployerIdentity>             <FR_Employer.URSSAF.Code>257</FR_Employer.URSSAF.Code>             <FR_EmployerAddress>                <rxpadr:FR_PostalAddress.StreetDesignation.Text>44 rue DES TEST</rxpadr:FR_PostalAddress.StreetDesignation.Text>                <rxpadr:FR_PostalAddress.Town.Text>CAEN</rxpadr:FR_PostalAddress.Town.Text>                <rxpadr:FR_PostalAddress.Postal.Code>14000</rxpadr:FR_PostalAddress.Postal.Code>             </FR_EmployerAddress>             <FR_EmployerContact> 67  <FR_PhoneNumber>                <rxphadr:FR_PhoneAddress.PhoneNumber.Text>0000000000</rxphadr:FR_PhoneAddress.Phon eNumber.Text>                </FR_PhoneNumber>             </FR_EmployerContact>          </FR_Employer>    <FR_EmployeeGroup>          <FR_Employee>             <FR_EmployeeIdentity>                <rxpers:FR_PersonIdentity.Surname.Text>TEST</rxpers:FR_PersonIdentity.Surname.Text >                <rxpers:FR_PersonIdentity.ChristianName.Text>Alain</rxpers:FR_PersonIdentity.Chris tianName.Text>                <rxpers:FR_PersonIdentity.Sex.Code>1</rxpers:FR_PersonIdentity.Sex.Code>       <rxpers:FR_NNI>       <rxpers:FR_NNI.NIR.Identifier>1000000000000</rxpers:FR_NNI.NIR.Identifier>       <rxpers:FR_NNI.NIRKey.Text>99</rxpers:FR_NNI.NIRKey.Text>       </rxpers:FR_NNI>                <rxpers:FR_Birth>                   <rxpers:FR_Birth.Date>1970-01-01</rxpers:FR_Birth.Date>                   <rxpers:FR_Birth.Town.Text>PARIS</rxpers:FR_Birth.Town.Text>                </rxpers:FR_Birth>             </FR_EmployeeIdentity>                <FR_EmployeeComplement>                   <FR_EmployeeComplement.Birth_Department.Code>75</FR_EmployeeComplement.Birth_Depar tment.Code>                </FR_EmployeeComplement>             </FR_Employee>             <FR_Contract>                <FR_Contract.StartContract.Date>2015-0717</FR_Contract.StartContract.Date>                <FR_Contract.StartContract.Time>12:30:00</FR_Contract.StartContract.Time>                <FR_Contract.EndContract.Date>2015-0915</FR_Contract.EndContract.Date>                <FR_Contract.Nature.Code>CDI</FR_Contract.Nature.Code>                <FR_Contract.HealthService.Text>387</FR_Contract.HealthService.Text>             </FR_Contract>          </FR_EmployeeGroup>       </FR_DuesGroup>    </FR_DUE_Upload> 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...