Skip to main content
Tweeted twitter.com/StackOverflowPT/status/1621342996439437318
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
tags editadas
Link
Largato
  • 92,9mil
  • 18
  • 190
  • 261
Retagging.
Fonte Link
Leonel Sanches da Silva
  • 89,6mil
  • 9
  • 125
  • 233

Estou precisando utilizar a API de pagamentos do Moip como forma de pagamento do meu sistema, como faço para fazer o request via json  ?

Documentação

Consultar cliente GET

Por meio desta API é possível consultar as informações e detalhes de um cliente.

ENDPOINT GET https://sandbox.moip.com.br/v2/customers/{customer_id}

EXEMPLO GET https://sandbox.moip.com.br/v2/customers/CUS-Y6L4AGQN8HKQ

REQUEST:

Content-Type: application/json

Authorization: "Basic MDEwMTAxMDEwMTAxMDEwMTAxMDEwMTAxMDEwMTAxMDE6QUJBQkFCQUJBQkFCQUJBQkFCQUJBQkFCQUJBQkFCQUJBQkFCQUJBQg=="

RESPONSE:

200 (OK)
Content-Type: application/json

 {
  "id": "CUS-Y6L4AGQN8HKQ",
  "ownId": "meu_id_sandbox_1231234",
  "fullname": "Jose Silva",
  "createdAt": "2015-01-14T11:28:22-0200",
  "birthDate": "1988-12-30T00:00:00-0200",
  "email": "[email protected]",
  "phone": {
    "countryCode": "55",
    "areaCode": "11",
    "number": "66778899"
  },
  "taxDocument": {
    "type": "CPF",
    "number": "22222222222"
  },
  "shippingAddress": {
    "zipCode": "01234000",
    "street": "Avenida Faria Lima",
    "streetNumber": "2927",
    "complement": "8",
    "city": "Sao Paulo",
    "district": "Itaim",
    "state": "SP",
    "country": "BRA"
  },
  "moipAccount": {
    "id": "MPA-M1M01PACC0NT"
  },
  "_links": {
    "self": {
      "href": "https://sandbox.moip.com.br/v2/customers/CUS-Y6L4AGQN8HKQ"
    }
  }
}

Estou precisando utilizar a API de pagamentos do Moip como forma de pagamento do meu sistema, como faço para fazer o request via json  ?

Documentação

Consultar cliente GET

Por meio desta API é possível consultar as informações e detalhes de um cliente.

ENDPOINT GET https://sandbox.moip.com.br/v2/customers/{customer_id}

EXEMPLO GET https://sandbox.moip.com.br/v2/customers/CUS-Y6L4AGQN8HKQ

REQUEST:

Content-Type: application/json

Authorization: "Basic MDEwMTAxMDEwMTAxMDEwMTAxMDEwMTAxMDEwMTAxMDE6QUJBQkFCQUJBQkFCQUJBQkFCQUJBQkFCQUJBQkFCQUJBQkFCQUJBQg=="

RESPONSE:

200 (OK)
Content-Type: application/json

 {
  "id": "CUS-Y6L4AGQN8HKQ",
  "ownId": "meu_id_sandbox_1231234",
  "fullname": "Jose Silva",
  "createdAt": "2015-01-14T11:28:22-0200",
  "birthDate": "1988-12-30T00:00:00-0200",
  "email": "[email protected]",
  "phone": {
    "countryCode": "55",
    "areaCode": "11",
    "number": "66778899"
  },
  "taxDocument": {
    "type": "CPF",
    "number": "22222222222"
  },
  "shippingAddress": {
    "zipCode": "01234000",
    "street": "Avenida Faria Lima",
    "streetNumber": "2927",
    "complement": "8",
    "city": "Sao Paulo",
    "district": "Itaim",
    "state": "SP",
    "country": "BRA"
  },
  "moipAccount": {
    "id": "MPA-M1M01PACC0NT"
  },
  "_links": {
    "self": {
      "href": "https://sandbox.moip.com.br/v2/customers/CUS-Y6L4AGQN8HKQ"
    }
  }
}

Estou precisando utilizar a API de pagamentos do Moip como forma de pagamento do meu sistema, como faço para fazer o request via json?

Documentação

Consultar cliente GET

Por meio desta API é possível consultar as informações e detalhes de um cliente.

ENDPOINT GET https://sandbox.moip.com.br/v2/customers/{customer_id}

EXEMPLO GET https://sandbox.moip.com.br/v2/customers/CUS-Y6L4AGQN8HKQ

REQUEST:

Content-Type: application/json

Authorization: "Basic MDEwMTAxMDEwMTAxMDEwMTAxMDEwMTAxMDEwMTAxMDE6QUJBQkFCQUJBQkFCQUJBQkFCQUJBQkFCQUJBQkFCQUJBQkFCQUJBQg=="

RESPONSE:

200 (OK)
Content-Type: application/json

 {
  "id": "CUS-Y6L4AGQN8HKQ",
  "ownId": "meu_id_sandbox_1231234",
  "fullname": "Jose Silva",
  "createdAt": "2015-01-14T11:28:22-0200",
  "birthDate": "1988-12-30T00:00:00-0200",
  "email": "[email protected]",
  "phone": {
    "countryCode": "55",
    "areaCode": "11",
    "number": "66778899"
  },
  "taxDocument": {
    "type": "CPF",
    "number": "22222222222"
  },
  "shippingAddress": {
    "zipCode": "01234000",
    "street": "Avenida Faria Lima",
    "streetNumber": "2927",
    "complement": "8",
    "city": "Sao Paulo",
    "district": "Itaim",
    "state": "SP",
    "country": "BRA"
  },
  "moipAccount": {
    "id": "MPA-M1M01PACC0NT"
  },
  "_links": {
    "self": {
      "href": "https://sandbox.moip.com.br/v2/customers/CUS-Y6L4AGQN8HKQ"
    }
  }
}

Estou precisando utilizar o MOIPa API de pagamentos do Moip como forma de pagamento do meu sistema, como faço para fazer o request via jsonjson ?

http://dev.moip.com.br/referencia-api/

----------------------------//-----------------------------

Consultar cliente GET Por meio desta API é possível consultar as informações e detalhes de um cliente.

ENDPOINT GET https://sandbox.moip.com.br/v2/customers/{customer_id}Documentação

EXEMPLO GET https://sandbox.moip.com.br/v2/customers/CUS-Y6L4AGQN8HKQ

Consultar cliente GET

Por meio desta API é possível consultar as informações e detalhes de um cliente.

ENDPOINT GET https://sandbox.moip.com.br/v2/customers/{customer_id}

EXEMPLO GET https://sandbox.moip.com.br/v2/customers/CUS-Y6L4AGQN8HKQ

REQUEST: Content-TypeREQUEST: application/json

Authorization: "Basic MDEwMTAxMDEwMTAxMDEwMTAxMDEwMTAxMDEwMTAxMDE6QUJBQkFCQUJBQkFCQUJBQkFCQUJBQkFCQUJBQkFCQUJBQkFCQUJBQg=="

Content-Type: application/json

Authorization: "Basic MDEwMTAxMDEwMTAxMDEwMTAxMDEwMTAxMDEwMTAxMDE6QUJBQkFCQUJBQkFCQUJBQkFCQUJBQkFCQUJBQkFCQUJBQkFCQUJBQg=="

RESPONSE: 200 (OK) Content-TypeRESPONSE: application/json

{ "id": "CUS-Y6L4AGQN8HKQ", "ownId": "meu_id_sandbox_1231234", "fullname": "Jose Silva", "createdAt": "2015-01-14T11:28:22-0200", "birthDate": "1988-12-30T00:00:00-0200", "email": "[email protected]", "phone": { "countryCode": "55", "areaCode": "11", "number": "66778899" }, "taxDocument": { "type": "CPF", "number": "22222222222" }, "shippingAddress": { "zipCode": "01234000", "street": "Avenida Faria Lima", "streetNumber": "2927", "complement": "8", "city": "Sao Paulo", "district": "Itaim", "state": "SP", "country": "BRA" }, "moipAccount": { "id": "MPA-M1M01PACC0NT" }, "_links": { "self": { "href": "https://sandbox.moip.com.br/v2/customers/CUS-Y6L4AGQN8HKQ" } } }

200 (OK)
Content-Type: application/json

 {
  "id": "CUS-Y6L4AGQN8HKQ",
  "ownId": "meu_id_sandbox_1231234",
  "fullname": "Jose Silva",
  "createdAt": "2015-01-14T11:28:22-0200",
  "birthDate": "1988-12-30T00:00:00-0200",
  "email": "[email protected]",
  "phone": {
    "countryCode": "55",
    "areaCode": "11",
    "number": "66778899"
  },
  "taxDocument": {
    "type": "CPF",
    "number": "22222222222"
  },
  "shippingAddress": {
    "zipCode": "01234000",
    "street": "Avenida Faria Lima",
    "streetNumber": "2927",
    "complement": "8",
    "city": "Sao Paulo",
    "district": "Itaim",
    "state": "SP",
    "country": "BRA"
  },
  "moipAccount": {
    "id": "MPA-M1M01PACC0NT"
  },
  "_links": {
    "self": {
      "href": "https://sandbox.moip.com.br/v2/customers/CUS-Y6L4AGQN8HKQ"
    }
  }
}

Estou precisando utilizar o MOIP como forma de pagamento do meu sistema, como faço para fazer o request via json ?

http://dev.moip.com.br/referencia-api/

----------------------------//-----------------------------

Consultar cliente GET Por meio desta API é possível consultar as informações e detalhes de um cliente.

ENDPOINT GET https://sandbox.moip.com.br/v2/customers/{customer_id}

EXEMPLO GET https://sandbox.moip.com.br/v2/customers/CUS-Y6L4AGQN8HKQ

REQUEST: Content-Type: application/json

Authorization: "Basic MDEwMTAxMDEwMTAxMDEwMTAxMDEwMTAxMDEwMTAxMDE6QUJBQkFCQUJBQkFCQUJBQkFCQUJBQkFCQUJBQkFCQUJBQkFCQUJBQg=="

RESPONSE: 200 (OK) Content-Type: application/json

{ "id": "CUS-Y6L4AGQN8HKQ", "ownId": "meu_id_sandbox_1231234", "fullname": "Jose Silva", "createdAt": "2015-01-14T11:28:22-0200", "birthDate": "1988-12-30T00:00:00-0200", "email": "[email protected]", "phone": { "countryCode": "55", "areaCode": "11", "number": "66778899" }, "taxDocument": { "type": "CPF", "number": "22222222222" }, "shippingAddress": { "zipCode": "01234000", "street": "Avenida Faria Lima", "streetNumber": "2927", "complement": "8", "city": "Sao Paulo", "district": "Itaim", "state": "SP", "country": "BRA" }, "moipAccount": { "id": "MPA-M1M01PACC0NT" }, "_links": { "self": { "href": "https://sandbox.moip.com.br/v2/customers/CUS-Y6L4AGQN8HKQ" } } }

Estou precisando utilizar a API de pagamentos do Moip como forma de pagamento do meu sistema, como faço para fazer o request via json ?

Documentação

Consultar cliente GET

Por meio desta API é possível consultar as informações e detalhes de um cliente.

ENDPOINT GET https://sandbox.moip.com.br/v2/customers/{customer_id}

EXEMPLO GET https://sandbox.moip.com.br/v2/customers/CUS-Y6L4AGQN8HKQ

REQUEST:

Content-Type: application/json

Authorization: "Basic MDEwMTAxMDEwMTAxMDEwMTAxMDEwMTAxMDEwMTAxMDE6QUJBQkFCQUJBQkFCQUJBQkFCQUJBQkFCQUJBQkFCQUJBQkFCQUJBQg=="

RESPONSE:

200 (OK)
Content-Type: application/json

 {
  "id": "CUS-Y6L4AGQN8HKQ",
  "ownId": "meu_id_sandbox_1231234",
  "fullname": "Jose Silva",
  "createdAt": "2015-01-14T11:28:22-0200",
  "birthDate": "1988-12-30T00:00:00-0200",
  "email": "[email protected]",
  "phone": {
    "countryCode": "55",
    "areaCode": "11",
    "number": "66778899"
  },
  "taxDocument": {
    "type": "CPF",
    "number": "22222222222"
  },
  "shippingAddress": {
    "zipCode": "01234000",
    "street": "Avenida Faria Lima",
    "streetNumber": "2927",
    "complement": "8",
    "city": "Sao Paulo",
    "district": "Itaim",
    "state": "SP",
    "country": "BRA"
  },
  "moipAccount": {
    "id": "MPA-M1M01PACC0NT"
  },
  "_links": {
    "self": {
      "href": "https://sandbox.moip.com.br/v2/customers/CUS-Y6L4AGQN8HKQ"
    }
  }
}
Fonte Link
Daniel
  • 63
  • 1
  • 8
Carregando