Key |
Value |
Description |
---|---|---|
username (string)
|
DEMOABCD
|
REQUIRED
|
company_name (string)
|
OBLIGR INDIA PVT LTD
|
REQUIRED
|
attn (string)
|
OBLIGR
|
REQUIRED
|
address (string)
|
20/3 SAJAN NAGAR
|
REQUIRED
|
pincode (number)
|
452001
|
REQUIRED - 6 DIGIT
|
city (string)
|
INDORE
|
REQUIRED
|
state (string)
|
MADHYA PRADESH
|
REQUIRED
|
country (string)
|
INDIA
|
REQUIRED
|
gst_number (string)
|
23AACC06906C1ZV
|
REQUIRED - 15 Characters
|
gst_code (number)
|
23
|
REQUIRED - 2 DIGIT
|
pan_number (string)
|
AACC06906C
|
REQUIRED - 10 Characters
|
curl --location --request POST 'https://obligr.io/api_v2/user/billing_address' \ --header 'Authorization: Bearer [YOUR_API_KEY]' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --data-urlencode 'username=DEMOABCD' \ --data-urlencode 'company_name=OBLIGR INDIA PVT LTD' \ --data-urlencode 'attn=OBLIGR' \ --data-urlencode 'address=20/3 SAJAN NAGAR' \ --data-urlencode 'pincode=452001' \ --data-urlencode 'city=INDORE' \ --data-urlencode 'state=MADHYA PRADESH' \ --data-urlencode 'country=INDIA' \ --data-urlencode 'gst_number=23AACC06906C1ZV' \ --data-urlencode 'gst_code=23' \ --data-urlencode 'pan_number=AACC06906C'
<?php $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => "https://obligr.io/api_v2/user/billing_address",
CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => "", CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 0, CURLOPT_FOLLOWLOCATION => true, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "POST", CURLOPT_POSTFIELDS => "username=DEMOABCD&company_name=OBLIGR%20INDIA%20PVT%20LTD&attn=OBLIGR&address=20/3%20SAJAN%20NAGAR&pincode=452001&city=INDORE&state=MADHYA%20PRADESH&country=INDIA&gst_number=23AACC06906C1ZV&gst_code=23&pan_number=AACC06906C", CURLOPT_HTTPHEADER => array( "Authorization: Bearer [YOUR_API_KEY]", "Content-Type: application/x-www-form-urlencoded" ), )); $response = curl_exec($curl); curl_close($curl); echo $response;
var client = new RestClient("https://obligr.io/api_v2/user/billing_address"); client.Timeout = -1; var request = new RestRequest(Method.POST); request.AddHeader("Authorization", "Bearer [YOUR_API_KEY]"); request.AddHeader("Content-Type", "application/x-www-form-urlencoded"); request.AddParameter("username", "DEMOABCD"); request.AddParameter("company_name", "OBLIGR INDIA PVT LTD"); request.AddParameter("attn", "OBLIGR"); request.AddParameter("address", "20/3 SAJAN NAGAR"); request.AddParameter("pincode", "452001"); request.AddParameter("city", "INDORE"); request.AddParameter("state", "MADHYA PRADESH"); request.AddParameter("country", "INDIA"); request.AddParameter("gst_number", "23AACC06906C1ZV"); request.AddParameter("gst_code", "23"); request.AddParameter("pan_number", "AACC06906C"); IRestResponse response = client.Execute(request); Console.WriteLine(response.Content);
import http.client import mimetypes conn = http.client.HTTPSConnection("obligr.io") payload = 'username=DEMOABCD&company_name=OBLIGR%20INDIA%20PVT%20LTD&attn=OBLIGR&address=20/3%20SAJAN%20NAGAR&pincode=452001&city=INDORE&state=MADHYA%20PRADESH&country=INDIA&gst_number=23AACC06906C1ZV&gst_code=23&pan_number=AACC06906C' headers = { 'Authorization': 'Bearer [YOUR_API_KEY]', 'Content-Type': 'application/x-www-form-urlencoded' } conn.request("POST", "/api_v2/user/billing_address", payload, headers) res = conn.getresponse() data = res.read() print(data.decode("utf-8"))
OkHttpClient client = new OkHttpClient().newBuilder() .build(); MediaType mediaType = MediaType.parse("application/x-www-form-urlencoded"); RequestBody body = RequestBody.create(mediaType, "username=DEMOABCD&company_name=OBLIGR INDIA PVT LTD&attn=OBLIGR&address=20/3 SAJAN NAGAR&pincode=452001&city=INDORE&state=MADHYA PRADESH&country=INDIA&gst_number=23AACC06906C1ZV&gst_code=23&pan_number=AACC06906C"); Request request = new Request.Builder() .url("https://obligr.io/api_v2/user/billing_address") .method("POST", body) .addHeader("Authorization", "Bearer [YOUR_API_KEY]") .addHeader("Content-Type", "application/x-www-form-urlencoded") .build(); Response response = client.newCall(request).execute();
var axios = require('axios'); var qs = require('qs'); var data = qs.stringify({ 'username': 'DEMOABCD', 'company_name': 'OBLIGR INDIA PVT LTD', 'attn': 'OBLIGR', 'address': '20/3 SAJAN NAGAR', 'pincode': '452001', 'city': 'INDORE', 'state': 'MADHYA PRADESH', 'country': 'INDIA', 'gst_number': '23AACC06906C1ZV', 'gst_code': '23', 'pan_number': 'AACC06906C' }); var config = { method: 'post', url: 'https://obligr.io/api_v2/user/billing_address', headers: { 'Authorization': 'Bearer [YOUR_API_KEY]', 'Content-Type': 'application/x-www-form-urlencoded' }, data : data }; axios(config) .then(function (response) { console.log(JSON.stringify(response.data)); }) .catch(function (error) { console.log(error); });
var settings = { "url": "https://obligr.io/api_v2/user/billing_address", "method": "POST", "timeout": 0, "headers": { "Authorization": "Bearer [YOUR_API_KEY]", "Content-Type": "application/x-www-form-urlencoded" }, "data": { "username": "DEMOABCD", "company_name": "OBLIGR INDIA PVT LTD", "attn": "OBLIGR", "address": "20/3 SAJAN NAGAR", "pincode": "452001", "city": "INDORE", "state": "MADHYA PRADESH", "country": "INDIA", "gst_number": "23AACC06906C1ZV", "gst_code": "23", "pan_number": "AACC06906C" } }; $.ajax(settings).done(function (response) { console.log(response); });
{
“success”: true,
“error”: null,
“data”: “Billing Address Successfully Saved.”
}