Sha256: 78dce453db50d8c35b0aaf84e07ab17753b2178641da9d369adcc3d71291d3f3
Contents?: true
Size: 1.57 KB
Versions: 3
Compression:
Stored size: 1.57 KB
Contents
# Here is an example of creating an Moip account using the Moip account API auth = Moip2::Auth::OAuth.new("oauth") client = Moip2::Client.new(:sandbox, auth) api = Moip2::Api.new(client) # Check if account exists api.accounts.exists?("978.443.610-85") # Create account account = api.accounts.create( email: { address: "dev.moip@labs.moip.com.br", }, person: { name: "Joaquim José", lastName: "Silva Silva", taxDocument: { type: "CPF", number: "978.443.610-85", }, identityDocument: { type: "RG", number: "35.868.057-8", issuer: "SSP", issueDate: "2000-12-12", }, birthDate: "1990-01-01", phone: { countryCode: "55", areaCode: "11", number: "965213244", }, address: { street: "Av. Brigadeiro Faria Lima", streetNumber: "2927", district: "Itaim", zipCode: "01234-000", city: "S\u00E3o Paulo", state: "SP", country: "BRA", }, }, company: { name: "Company Test", businessName: "Razão Social Test", address: { street: "Av. Brigadeiro Faria Lima", streetNumber: "4530", district: "Itaim", city: "São Paulo", state: "SP", country: "BRA", zipCode: "01234000", }, mainActivity: { cnae: "82.91-1/00", description: "Atividades de cobranças e informações cadastrais", }, taxDocument: { type: "CNPJ", number: "61.148.461/0001-09", }, phone: { countryCode: "55", areaCode: "11", number: "975142244", }, }, type: "MERCHANT", )
Version data entries
3 entries across 3 versions & 1 rubygems