interactions:
- request:
    body: '{"emission_date": "2014-02-19T19:04:00", "emitter_id": 13, "serie": "TESTE",
      "service_values": {"calculation_base": "99.99", "city_code": 3304557, "city_tax_code":
      "010501", "cnae_code": "6201-5", "deduction_amount": "0.00", "description":
      "Testes da api do emites", "discount_conditioning_amount": "0.00", "id": "",
      "iss_amount": "4.99", "iss_percentage": "5.00", "nfse_liquid_amount": "99.99",
      "service_amount": "99.99", "service_item_code": "0105"}, "taker": {"address":
      {"city": "Rio de Janeiro", "city_code": 3304557, "complement": "11\u00ba andar",
      "country": "Brasil", "country_abbreviation": "BR", "country_code": "01058",
      "neighborhood": "Centro", "neighborhood_type": "COM", "number": "1142", "reference_point":
      "Ao lado", "state": "RJ", "street": "dos testes", "street_type": "AVN", "zip_code":
      "20011020"}, "city_inscription": "00000000", "cnpj": "91762868000184", "contact":
      {"email": "pagamentos@python-emites.test", "phone": "21000000000"}, "cpf": null,
      "fancy_name": "Empresa de Testes", "foreign_taker": false, "social_reason":
      "Empresa de Testes Ltda ME", "special_situation": 0, "state_inscription": "ISENTO",
      "substitute_state_inscription": null}}'
    headers:
      Accept: [application/json]
      Accept-Encoding: ['gzip, deflate']
      Authorization: [Basic Njg1MTY3RDQxOTBEOTRBOTQ2MTk0ODdBMTA2NTYxRTc6]
      Cache-Control: [no-cache]
      Connection: [keep-alive]
      Content-Length: ['1167']
      Content-Type: [application/json]
      User-Agent: [python-emites]
    method: POST
    uri: https://sandbox.emites.com.br:443/api/v1/nfse
  response:
    body: {string: "{\"_links\": [{\"href\": \"https://sandbox.emites.com.br/api/v1/nfse/80\"\
        , \"method\": \"GET\", \"rel\": \"self\"}, {\"href\": \"https://sandbox.emites.com.br/api/v1/nfse/80\"\
        , \"method\": \"DELETE\", \"rel\": \"destroy\"}, {\"href\": \"https://sandbox.emites.com.br/api/v1/nfse/80/status\"\
        , \"method\": \"GET\", \"rel\": \"status\"}, {\"href\": \"https://sandbox.emites.com.br/api/v1/nfse/80/cancel\"\
        , \"method\": \"POST\", \"rel\": \"cancel\"}, {\"href\": \"https://sandbox.emites.com.br/api/v1/nfse/80/mirror\"\
        , \"method\": \"GET\", \"rel\": \"mirror\"}, {\"href\": \"https://sandbox.emites.com.br/api/v1/nfse/80/xml\"\
        , \"method\": \"GET\", \"rel\": \"xml\"}, {\"href\": \"https://sandbox.emites.com.br/api/v1/nfse/80/pdf\"\
        , \"method\": \"GET\", \"rel\": \"pdf\"}, {\"href\": \"https://sandbox.emites.com.br/api/v1/nfse/80/history\"\
        , \"method\": \"GET\", \"rel\": \"history\"}], \"nfse_errors\": [], \"service_values\"\
        : {\"deduction_amount\": \"0.00\", \"discount_conditioning_amount\": \"0.00\"\
        , \"city_tax_code\": \"010501\", \"calculation_base\": \"99.99\", \"service_amount\"\
        : \"99.99\", \"pis_amount\": null, \"other_retentions\": null, \"inss_amount\"\
        : null, \"retained_iss\": false, \"iss_percentage\": \"5.00\", \"csll_amount\"\
        : null, \"service_item_code\": \"0105\", \"retained_iss_amount\": null, \"\
        nfse_liquid_amount\": \"99.99\", \"unconditioned_discount\": null, \"cofins_amount\"\
        : null, \"ir_amount\": null, \"iss_amount\": \"4.99\", \"cnae_code\": \"6201-5\"\
        , \"city_code\": 3304557, \"description\": \"Testes da api do emites\"}, \"\
        substitute_rps\": null, \"environment\": \"sandbox\", \"taker\": {\"cnpj\"\
        : \"91762868000184\", \"fancy_name\": \"Empresa de Testes\", \"city_inscription\"\
        : \"00000000\", \"substitute_state_inscription\": null, \"address\": {\"neighborhood\"\
        : \"Centro\", \"country_abbreviation\": \"BR\", \"reference_point\": \"Ao\
        \ lado\", \"complement\": \"11\xBA andar\", \"number\": \"1142\", \"neighborhood_type\"\
        : \"COM\", \"street\": \"dos testes\", \"country_code\": \"01058\", \"city\"\
        : \"Rio de Janeiro\", \"country\": \"Brasil\", \"state\": \"RJ\", \"street_type\"\
        : \"AVN\", \"city_code\": 3304557, \"zip_code\": \"20011020\"}, \"state_inscription\"\
        : \"ISENTO\", \"social_reason\": \"Empresa de Testes Ltda ME\", \"cpf\": null,\
        \ \"contact\": {\"phone\": \"21000000000\", \"email\": \"pagamentos@python-emites.test\"\
        }, \"special_situation\": 0, \"foreign_taker\": false}, \"emitter_id\": 13,\
        \ \"batch_id\": null, \"mirror_url\": null, \"xml_url\": null, \"pdf_url\"\
        : null, \"id\": 80, \"status\": \"scheduled\", \"description\": \"Agendado\
        \ o processamento da NFSe\", \"nfse_key\": null, \"nfse_number\": null, \"\
        send_nfse_taker\": false, \"number\": 521650082, \"serie\": \"TESTE\", \"\
        rps_type\": 1, \"emission_date\": \"2014-02-19T19:04:00\", \"operation_nature\"\
        : 1, \"national_simple_optant\": false, \"cultural_promoter\": false, \"rps_situation\"\
        : 1, \"other_informations\": null, \"competence\": null, \"special_regime\"\
        : null, \"emitter_city_code\": 3304557}"}
    headers:
      allow: ['GET, POST, HEAD, OPTIONS']
      connection: [keep-alive]
      content-length: ['2682']
      content-type: [application/json]
      date: ['Tue, 11 Nov 2014 19:10:24 GMT']
      location: ['https://sandbox.emites.com.br/api/v1/nfse/80']
      server: [nginx/1.4.7]
      user-agent: [emites-sandbox-v1]
      vary: ['Accept, Cookie']
      x-frame-options: [SAMEORIGIN]
    status: {code: 202, message: ACCEPTED}
version: 1
