'POST handler.'

def post(self, request, provider_id):

    provider = generics.get_object_or_404(CreditProvider, provider_id=provider_id)
    data = request.data
    serializer = CreditProviderCallbackSerializer(data=data, provider=provider)
    serializer.is_valid(raise_exception=True)
    request_uuid = data[u'request_uuid']
    new_status = data[u'status']
    credit_request = generics.get_object_or_404(CreditRequest, uuid=request_uuid, provider=provider)
    old_status = credit_request.status
    credit_request.status = new_status
    credit_request.save()
    log.info(u'Updated    [%s]    CreditRequest    [%s]    from    status    [%s]    to    [%s].', provider_id, request_uuid, old_status, new_status)
    return Response()
