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": 39,
      "iss_amount": "4.99", "nfse_liquid_amount": "99.99", "service_item_code": "0105"},
      "taker_id": 11}'
    headers:
      Accept: [application/json]
      Accept-Encoding: ['gzip, deflate']
      Authorization: [Basic Njg1MTY3RDQxOTBEOTRBOTQ2MTk0ODdBMTA2NTYxRTc6]
      Cache-Control: [no-cache]
      Connection: [keep-alive]
      Content-Length: ['415']
      Content-Type: [application/json]
      User-Agent: [python-emites]
    method: POST
    uri: https://sandbox.emites.com.br:443/api/v1/nfse
  response:
    body: {string: !!python/unicode '{"_links": [{"href": "https://sandbox.emites.com.br/api/v1/nfse/81",
        "method": "GET", "rel": "self"}, {"href": "https://sandbox.emites.com.br/api/v1/nfse/81",
        "method": "DELETE", "rel": "destroy"}, {"href": "https://sandbox.emites.com.br/api/v1/nfse/81/status",
        "method": "GET", "rel": "status"}, {"href": "https://sandbox.emites.com.br/api/v1/nfse/81/cancel",
        "method": "POST", "rel": "cancel"}, {"href": "https://sandbox.emites.com.br/api/v1/nfse/81/mirror",
        "method": "GET", "rel": "mirror"}, {"href": "https://sandbox.emites.com.br/api/v1/nfse/81/xml",
        "method": "GET", "rel": "xml"}, {"href": "https://sandbox.emites.com.br/api/v1/nfse/81/pdf",
        "method": "GET", "rel": "pdf"}, {"href": "https://sandbox.emites.com.br/api/v1/nfse/81/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": null, "complement": null, "number": "42", "neighborhood_type":
        "COM", "street": "dos testes", "country_code": "01058", "city": "Rio de Janeiro",
        "country": "Brasil", "state": "RJ", "street_type": "RUA", "city_code": 3304557,
        "zip_code": "20011020"}, "state_inscription": "ISENTO", "social_reason": "Empresa
        de Testes Ltda ME", "cpf": null, "contact": {"phone": "21000000000", "email":
        "financeiro@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": 81, "status": "scheduled", "description": "Agendado
        o processamento da NFSe", "nfse_key": null, "nfse_number": null, "send_nfse_taker":
        false, "number": 1531017875, "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: ['2668']
      content-type: [application/json]
      date: ['Tue, 11 Nov 2014 19:18:11 GMT']
      location: ['https://sandbox.emites.com.br/api/v1/nfse/81']
      server: [nginx/1.4.7]
      user-agent: [emites-sandbox-v1]
      vary: ['Accept, Cookie']
      x-frame-options: [SAMEORIGIN]
    status: {code: 202, message: ACCEPTED}
version: 1
